Fix a numb of invalid routes in Rails 4

This commit is contained in:
Eric Schultz 2019-01-28 14:53:50 -06:00 committed by Luis Castro
parent cb1c5f2f8c
commit 568835c9bf
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639
4 changed files with 9 additions and 9 deletions

View file

@ -90,9 +90,9 @@ Rails.application.routes.draw do
put :bulk_delete, on: :collection put :bulk_delete, on: :collection
post :merge, on: :collection post :merge, on: :collection
get :merge_data, on: :collection get :merge_data, on: :collection
get :info_card get :info_card, on: :member
get :email_address get :email_address, on: :member
get :full_contact get :full_contact, on: :member
get :index_metrics, on: :collection get :index_metrics, on: :collection
end end

View file

@ -7,7 +7,7 @@ describe Nonprofits::ActivitiesController, :type => :controller do
include_context :shared_user_context include_context :shared_user_context
describe 'rejects unauthorized users' do describe 'rejects unauthorized users' do
describe 'get' do describe 'get' do
include_context :open_to_np_associate, :get, :index, id: :__our_np include_context :open_to_np_associate, :get, :index, nonprofit_id: :__our_np, supporter_id: 1111
end end
end end
end end

View file

@ -5,8 +5,8 @@ require 'controllers/support/shared_user_context'
describe Nonprofits::CustomFieldJoinsController, :type => :controller do describe Nonprofits::CustomFieldJoinsController, :type => :controller do
include_context :shared_user_context include_context :shared_user_context
describe 'rejects unauthenticated users' do describe 'rejects unauthenticated users' do
describe 'index ' do describe 'index' do
include_context :open_to_np_associate, :get, :index, nonprofit_id: :__our_np include_context :open_to_np_associate, :get, :index, nonprofit_id: :__our_np, supporter_id: 1
end end
describe 'modify' do describe 'modify' do
@ -14,7 +14,7 @@ describe Nonprofits::CustomFieldJoinsController, :type => :controller do
end end
describe 'destroy' do describe 'destroy' do
include_context :open_to_np_associate, :delete, :destroy, nonprofit_id: :__our_np, id: "1" include_context :open_to_np_associate, :delete, :destroy, nonprofit_id: :__our_np, id: "1", supporter_id: 1
end end
end end
end end

View file

@ -6,7 +6,7 @@ describe Nonprofits::TagJoinsController, :type => :controller do
describe 'authorization' do describe 'authorization' do
include_context :shared_user_context include_context :shared_user_context
describe 'index' do describe 'index' do
include_context :open_to_np_associate, :get, :index, nonprofit_id: :__our_np include_context :open_to_np_associate, :get, :index, nonprofit_id: :__our_np, supporter_id: 1
end end
describe 'modify' do describe 'modify' do
@ -14,7 +14,7 @@ describe Nonprofits::TagJoinsController, :type => :controller do
end end
describe 'destroy' do describe 'destroy' do
include_context :open_to_np_associate, :delete, :destroy, nonprofit_id: :__our_np, id: '1' include_context :open_to_np_associate, :delete, :destroy, nonprofit_id: :__our_np, id: '1', supporter_id: 2
end end