If there are only one conference in the future and it has a public splashpage, redirect to it in conferences#index.
Change tests root_path to conference_path(conference). fix #1259
This commit is contained in:
parent
0cb273749a
commit
73fdcaf4c9
7 changed files with 174 additions and 140 deletions
|
|
@ -14,7 +14,7 @@ feature 'Has correct abilities' do
|
|||
scenario 'for administration views' do
|
||||
visit admin_conference_path(conference.short_title)
|
||||
|
||||
expect(current_path).to eq root_path
|
||||
expect(current_path).to eq conference_path(conference)
|
||||
expect(flash).to eq 'You are not authorized to access this page.'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue