From e894176a10070bb89f1730217e98ac42475254df Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Wed, 12 Jul 2017 15:58:46 +0300 Subject: [PATCH] Test fixes --- spec/controllers/admin/versions_controller_spec.rb | 2 +- spec/features/cfp_ability_spec.rb | 2 +- spec/features/info_desk_ability_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/controllers/admin/versions_controller_spec.rb b/spec/controllers/admin/versions_controller_spec.rb index f1400e3b..0a4b7ecf 100644 --- a/spec/controllers/admin/versions_controller_spec.rb +++ b/spec/controllers/admin/versions_controller_spec.rb @@ -103,7 +103,7 @@ describe Admin::VersionsController do user = create(:user) sign_in user get :index, conference_id: conference.short_title - expect(flash[:alert]).to match('You are not authorized to access this area.') + expect(flash[:alert]).to match('You are not authorized to access this page.') end end end diff --git a/spec/features/cfp_ability_spec.rb b/spec/features/cfp_ability_spec.rb index 7af4e119..e018fd08 100644 --- a/spec/features/cfp_ability_spec.rb +++ b/spec/features/cfp_ability_spec.rb @@ -244,7 +244,7 @@ feature 'Has correct abilities' do expect(current_path).to eq(edit_admin_conference_resource_path(conference.short_title, conference.resources.first)) visit admin_revision_history_path - expect(current_path).to eq(root_path) + expect(current_path).to eq(admin_revision_history_path) end end end diff --git a/spec/features/info_desk_ability_spec.rb b/spec/features/info_desk_ability_spec.rb index 20aa586b..a01b7515 100644 --- a/spec/features/info_desk_ability_spec.rb +++ b/spec/features/info_desk_ability_spec.rb @@ -160,7 +160,7 @@ feature 'Has correct abilities' do expect(current_path).to eq(edit_admin_conference_resource_path(conference.short_title, conference.resources.first)) visit admin_revision_history_path - expect(current_path).to eq(root_path) + expect(current_path).to eq(admin_revision_history_path) visit admin_conference_path(conference.short_title) expect(current_path).to eq(admin_conference_path(conference.short_title))