mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
commit
b5fe3bfdcd
2 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
= render partial: 'shared/media_item', locals: { commercial_type: commercial.commercial_type, commercial_id: commercial.commercial_id }
|
||||
- if can? :update, commercial
|
||||
= link_to 'Edit', edit_conference_proposal_commercial_path(@conference.short_title, @event.id, commercial.id), class: 'btn btn-primary'
|
||||
- if can? :destrooy, commercial
|
||||
- if can? :destroy, commercial
|
||||
= link_to 'Delete', conference_proposal_commercial_path(@conference.short_title, @event.id, commercial.id),
|
||||
:method => :delete, :data => { :confirm => 'Are you sure?' }, class: 'btn btn-danger'
|
||||
- if can? :create, @event.commercials.new
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ feature Event do
|
|||
# Delete a commercial
|
||||
click_link 'Commercials'
|
||||
click_link 'Delete'
|
||||
page.driver.network_traffic
|
||||
expect(flash).to eq('Commercial was successfully destroyed.')
|
||||
expect(event.commercials.count).to eq(expected_count_commercial - 1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue