Remove unnecessary ability from adminAbilities
CanCanCan can load @events and @event in EventsController by itself
This commit is contained in:
parent
c4eec6a3de
commit
a87c6e55f7
4 changed files with 4 additions and 19 deletions
|
|
@ -101,7 +101,7 @@ feature 'Has correct abilities' do
|
|||
expect(current_path).to eq root_path
|
||||
|
||||
visit admin_conference_program_events_path(conference.short_title)
|
||||
expect(current_path).to eq admin_conference_program_events_path(conference.short_title)
|
||||
expect(current_path).to eq root_path
|
||||
|
||||
create(:event, program: conference.program)
|
||||
visit edit_admin_conference_program_event_path(conference.short_title, conference.program.events.first)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue