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 | 			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 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ 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 | ||||||
|  | @ -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 | ||||||
|      |      | ||||||
|      |      | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eric Schultz
						Eric Schultz