Skip to content

Commit

Permalink
Run some features headless #BetterPlace
Browse files Browse the repository at this point in the history
  • Loading branch information
bear454 committed Dec 29, 2018
1 parent 349cc75 commit 37f24b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/features/tickets_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
sign_out
end

scenario 'add a valid ticket', feature: true, js: true do
scenario 'add a valid ticket', feature: true do
visit admin_conference_tickets_path(conference.short_title)
click_link 'Add Ticket'

Expand All @@ -30,7 +30,7 @@
expect(Ticket.count).to eq(2)
end

scenario 'add a invalid ticket', feature: true, js: true do
scenario 'add a invalid ticket', feature: true do
visit admin_conference_tickets_path(conference.short_title)
click_link 'Add Ticket'

Expand Down Expand Up @@ -62,7 +62,7 @@
context 'Ticket already created' do
let!(:ticket) { create(:ticket, title: 'Business Ticket', price: 100, conference_id: conference.id) }

scenario 'edit valid ticket', feature: true, js: true do
scenario 'edit valid ticket', feature: true do
visit admin_conference_tickets_path(conference.short_title)
click_link('Edit', href: edit_admin_conference_ticket_path(conference.short_title, ticket.id))

Expand All @@ -80,7 +80,7 @@
expect(Ticket.count).to eq(2)
end

scenario 'edit invalid ticket', feature: true, js: true do
scenario 'edit invalid ticket', feature: true do
visit admin_conference_tickets_path(conference.short_title)
click_link('Edit', href: edit_admin_conference_ticket_path(conference.short_title, ticket.id))

Expand Down

0 comments on commit 37f24b6

Please sign in to comment.