Test fixes

This commit is contained in:
Stella Rouzi 2017-07-12 15:58:46 +03:00
parent fe8c7bb83f
commit e894176a10
3 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ describe Admin::VersionsController do
user = create(:user) user = create(:user)
sign_in user sign_in user
get :index, conference_id: conference.short_title 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 end
end end

View file

@ -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)) expect(current_path).to eq(edit_admin_conference_resource_path(conference.short_title, conference.resources.first))
visit admin_revision_history_path visit admin_revision_history_path
expect(current_path).to eq(root_path) expect(current_path).to eq(admin_revision_history_path)
end end
end end
end end

View file

@ -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)) expect(current_path).to eq(edit_admin_conference_resource_path(conference.short_title, conference.resources.first))
visit admin_revision_history_path 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) visit admin_conference_path(conference.short_title)
expect(current_path).to eq(admin_conference_path(conference.short_title)) expect(current_path).to eq(admin_conference_path(conference.short_title))