Skip to content

Commit

Permalink
Merge pull request #16 from alphagov/test-data-helpers
Browse files Browse the repository at this point in the history
Introduce test data helpers
  • Loading branch information
jamiecobbett committed Jul 15, 2014
2 parents feeae0c + ede34c1 commit 558e4fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/requests/manuals_spec.rb
@@ -1,8 +1,6 @@
require 'rails_helper'

describe 'manuals resource' do
let(:valid_manual) { { title: 'Employment Income Manual' } }

it 'confirms update of the manual' do
put_json '/hmrc-manuals/imaginary-slug', valid_manual

Expand Down
7 changes: 7 additions & 0 deletions spec/support/test_data_helpers.rb
@@ -0,0 +1,7 @@
module TestDataHelpers
def valid_manual(options = {})
{ title: 'Employment Income Manual' }.merge(options)
end
end

RSpec.configuration.include TestDataHelpers

0 comments on commit 558e4fd

Please sign in to comment.