houdini/spec/controllers/nonprofits_spec.rb
Bradley M. Kuhn 6772312ea7 Relicense all .rb files under new project license.
The primary license of the project is changing to:
  AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later

with some specific files to be licensed under the one of two licenses:
   CC0-1.0
   LGPL-3.0-or-later

This commit is one of the many steps to relicense the entire codebase.

Documentation granting permission for this relicensing (from all past
contributors who hold copyrights) is on file with Software Freedom
Conservancy, Inc.
2018-03-25 15:10:40 -04:00

85 lines
No EOL
2.4 KiB
Ruby

# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
require 'rails_helper'
require 'controllers/support/shared_user_context'
describe NonprofitsController, :type => :controller do
describe 'authorization' do
include_context :shared_user_context
describe 'rejects unauthorized users' do
describe 'update' do
include_context :open_to_np_associate, :put, :update, nonprofit_id: :__our_np
end
describe 'dashboard' do
include_context :open_to_np_associate, :get, :dashboard, nonprofit_id: :__our_np
end
describe 'dashboard_metrics' do
include_context :open_to_np_associate, :get, :dashboard_metrics, nonprofit_id: :__our_np
end
describe 'verify_identity' do
include_context :open_to_np_associate, :put, :verify_identity, nonprofit_id: :__our_np
end
describe 'recurring_donation_stats' do
include_context :open_to_np_associate, :get, :recurring_donation_stats, nonprofit_id: :__our_np
end
describe 'profile_todos' do
include_context :open_to_np_associate, :get, :profile_todos, nonprofit_id: :__our_np
end
describe 'dashboard_todos' do
include_context :open_to_np_associate, :get, :dashboard_todos, nonprofit_id: :__our_np
end
describe 'payment_history' do
include_context :open_to_np_associate, :get, :payment_history, nonprofit_id: :__our_np
end
describe 'destroy' do
include_context :open_to_super_admin, :delete, :destroy
end
end
describe 'open to all' do
describe 'show' do
include_context :open_to_all, :get, :show, nonprofit_id: :__our_np
end
describe 'create' do
include_context :open_to_all, :post, :create, nonprofit_id: :__our_np
end
describe 'btn' do
include_context :open_to_all, :get, :btn, nonprofit_id: :__our_np
end
describe 'supporter_form' do
include_context :open_to_all, :get, :supporter_form, nonprofit_id: :__our_np
end
describe 'custom_supporter' do
include_context :open_to_all, :post, :custom_supporter, nonprofit_id: :__our_np
end
describe 'donate' do
include_context :open_to_all, :get, :donate, nonprofit_id: :__our_np
end
describe 'search' do
include_context :open_to_all, :get, :search
end
end
end
end