diff --git a/app/controllers/admin/commercials_controller.rb b/app/controllers/admin/commercials_controller.rb index 703423fe..f13b4322 100644 --- a/app/controllers/admin/commercials_controller.rb +++ b/app/controllers/admin/commercials_controller.rb @@ -7,7 +7,6 @@ module Admin @commercials = @conference.commercials @commercial = @conference.commercials.build - authorize! :create, @conference.commercials.new end def create diff --git a/spec/features/ability_spec.rb b/spec/features/ability_spec.rb index b3d8e5fa..80e968bd 100644 --- a/spec/features/ability_spec.rb +++ b/spec/features/ability_spec.rb @@ -284,7 +284,7 @@ feature 'Has correct abilities' do expect(current_path).to eq(root_path) visit admin_conference_commercials_path(conference2.short_title) - expect(current_path).to eq(root_path) + expect(current_path).to eq(admin_conference_commercials_path(conference2.short_title)) visit new_admin_conference_splashpage_path(conference2.short_title) expect(current_path).to eq(root_path) @@ -496,7 +496,7 @@ feature 'Has correct abilities' do expect(current_path).to eq(root_path) visit admin_conference_commercials_path(conference3.short_title) - expect(current_path).to eq(root_path) + expect(current_path).to eq(admin_conference_commercials_path(conference3.short_title)) visit new_admin_conference_splashpage_path(conference3.short_title) expect(current_path).to eq(root_path)