Created
April 8, 2013 08:50
-
-
Save fidothe/5335286 to your computer and use it in GitHub Desktop.
Illustrating problem with VCR 2.4.0 and Cucumber 1.2.4. Run with `bundle exec cucumber .`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Cucumber / VCR interaction bug | |
Cucumber 1.2.4 seems to have changed an API VCR 2.4.0 relies on | |
@vcr | |
Scenario: explosion | |
When I make an http request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "http://rubygems.org/" | |
gem 'vcr', '2.4.0' | |
gem 'cucumber', '1.2.4' | |
gem 'webmock', '1.11.0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'vcr' | |
VCR.configure do |c| | |
c.hook_into :webmock | |
c.cassette_library_dir = 'vcr_cassettes' | |
end | |
VCR.cucumber_tags do |t| | |
t.tag '@vcr', :use_scenario_name => true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The result is:
The omission of a step defnition is deliberate: the error happens with or without it...