Add conference specifc route to revision history page

This commit is contained in:
Nishanth Vijayan 2016-08-15 16:42:12 +05:30
parent 5965bcf193
commit 51d569794f
5 changed files with 16 additions and 11 deletions

View file

@ -102,7 +102,7 @@ describe Admin::VersionsController do
it 'raises error if user is not an organizer of specified conference' do
user = create(:user)
sign_in user
get :index, conference_id: conference.id
get :index, conference_id: conference.short_title
expect(flash[:alert]).to match('You are not authorized to access this area.')
end
end