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
|
|
@ -20,7 +20,7 @@ feature 'Has correct abilities' do
|
|||
expect(current_path).to eq(edit_admin_organization_path(organization))
|
||||
|
||||
visit new_admin_organization_path
|
||||
expect(current_path).to eq(root_path)
|
||||
expect(current_path).to eq(conference_path(conference))
|
||||
end
|
||||
|
||||
scenario 'for conference attributes' do
|
||||
|
|
@ -118,7 +118,7 @@ feature 'Has correct abilities' do
|
|||
# Event, booth, track cfps exist
|
||||
call_for_tracks = create(:cfp, cfp_type: 'tracks', program: conference.program)
|
||||
visit new_admin_conference_program_cfp_path(conference.short_title)
|
||||
expect(current_path).to eq root_path
|
||||
expect(current_path).to eq conference_path(conference)
|
||||
|
||||
# Booth and track cfps exist
|
||||
conference.program.cfp.destroy!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue