Skip to content

Commit

Permalink
Record unmocked HTTP requests
Browse files Browse the repository at this point in the history
(Basically DataKitten stuff)
  • Loading branch information
pezholio committed Jun 17, 2015
1 parent ba64ac8 commit bd293ff
Show file tree
Hide file tree
Showing 3 changed files with 1,285 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api @vcr
Feature: Generate certificates from campaigns via a rake task

Scenario: Generate single dataset
Expand Down
11 changes: 11 additions & 0 deletions features/support/helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'webmock/cucumber'
require 'coveralls'
require 'sidekiq/testing'
require 'vcr'

Coveralls.wear_merged! 'rails'
Sidekiq::Testing.inline!
Expand All @@ -25,3 +26,13 @@ def execute_rake(file, task)
ENV['JURISDICTION'] = "cert-generator"
#FactoryGirl.create(:survey, full_title:'UnitedKingdam', title:'GB', access_code: 'GB', survey_version: 1)
end

VCR.configure do |c|
c.hook_into :webmock
c.cassette_library_dir = 'fixtures/cassettes'
c.default_cassette_options = { :record => :once }
end

VCR.cucumber_tags do |t|
t.tag '@vcr', :use_scenario_name => true
end

0 comments on commit bd293ff

Please sign in to comment.