Skip to content
Browse files

For the cucumber cuke, pull the server code into a separate file to h…

…opefully make it clearer that vcr_cucumber_helpers is not a file for end users to require.

See https://github.com/myronmarston/vcr/issues/63 for more details.
  • Loading branch information...
1 parent 660267f commit c9ab4b9de26c8009636dc48dee1e3fb9da5a1f40 @myronmarston committed May 11, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 features/test_frameworks/cucumber.feature
View
8 features/test_frameworks/cucumber.feature
@@ -22,16 +22,20 @@ Feature: Usage with Cucumber
last argument to `#tag` or `#tags`.
Scenario: Record HTTP interactions in a scenario by tagging it
- Given a file named "features/support/vcr.rb" with:
+ Given a file named "lib/server.rb" with:
"""
- require 'vcr_cucumber_helpers.rb'
+ require 'vcr_cucumber_helpers'
if ENV['WITH_SERVER'] == 'true'
start_sinatra_app(:port => 7777) do
get('/:path') { "Hello #{params[:path]}" }
end
end
+ """
+ Given a file named "features/support/vcr.rb" with:
+ """
+ require "lib/server"
require 'vcr'
VCR.config do |c|

0 comments on commit c9ab4b9

Please sign in to comment.
Something went wrong with that request. Please try again.