Fix a numb of invalid routes in Rails 4
This commit is contained in:
parent
cb1c5f2f8c
commit
568835c9bf
4 changed files with 9 additions and 9 deletions
|
@ -90,9 +90,9 @@ Rails.application.routes.draw do
|
|||
put :bulk_delete, on: :collection
|
||||
post :merge, on: :collection
|
||||
get :merge_data, on: :collection
|
||||
get :info_card
|
||||
get :email_address
|
||||
get :full_contact
|
||||
get :info_card, on: :member
|
||||
get :email_address, on: :member
|
||||
get :full_contact, on: :member
|
||||
get :index_metrics, on: :collection
|
||||
end
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ describe Nonprofits::ActivitiesController, :type => :controller do
|
|||
include_context :shared_user_context
|
||||
describe 'rejects unauthorized users' 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
|
||||
|
|
|
@ -6,7 +6,7 @@ describe Nonprofits::CustomFieldJoinsController, :type => :controller do
|
|||
include_context :shared_user_context
|
||||
describe 'rejects unauthenticated users' 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
|
||||
|
||||
describe 'modify' do
|
||||
|
@ -14,7 +14,7 @@ describe Nonprofits::CustomFieldJoinsController, :type => :controller do
|
|||
end
|
||||
|
||||
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
|
|
@ -6,7 +6,7 @@ describe Nonprofits::TagJoinsController, :type => :controller do
|
|||
describe 'authorization' do
|
||||
include_context :shared_user_context
|
||||
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
|
||||
|
||||
describe 'modify' do
|
||||
|
@ -14,7 +14,7 @@ describe Nonprofits::TagJoinsController, :type => :controller do
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue