Skip to content

Commit

Permalink
Merge pull request #618 from alphagov/use-feature-scenario
Browse files Browse the repository at this point in the history
Use feature/scenario consistently for features
  • Loading branch information
benthorner authored May 22, 2018
2 parents abe50e7 + 542f6bf commit d0717b2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/features/support_spec.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
require 'rails_helper'

RSpec.describe 'Support tickets', type: :feature do
RSpec.feature 'Support tickets', type: :feature do
before do
visit support_path
end

context 'when reporting a problem' do
feature 'Reporting a problem' do
let(:ticket) { build :ticket, support: 'feedback' }

it 'sends a support ticket to Zendesk' do
scenario 'Send a support ticket to Zendesk' do
choose 'I want to report a problem'
click_on 'Continue'
expect(page).to have_content 'Report a problem'
Expand All @@ -26,10 +26,10 @@
end
end

context 'when asking for data' do
feature 'Asking for data' do
let(:ticket) { build :ticket, support: 'data' }

it 'sends a support ticket to Zendesk' do
scenario 'Send a support ticket to Zendesk' do
choose 'I have a data request'
click_on 'Continue'
expect(page).to have_content 'Send a data request'
Expand All @@ -47,10 +47,10 @@
end
end

context 'when the data is invalid' do
feature 'Recover from invalid data' do
let(:ticket) { build :ticket, email: 'foo' }

it 'shows the errors in the ticket form' do
scenario 'Show the errors in the ticket form' do
choose 'I have a data request'
click_on 'Continue'
fill_in 'example-email', with: ticket.email
Expand Down

0 comments on commit d0717b2

Please sign in to comment.