Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A few relish fixes.

  • Loading branch information...
commit 3883d5000422d57fc1d7955b511fc99907da9d7b 1 parent 2deeb50
@myronmarston authored
View
6 features/cassettes/format.feature
@@ -40,9 +40,9 @@ Feature: Cassette format
You can also register a custom serializer using:
- VCR.configure do |config|
- config.cassette_serializers[:my_custom_serializer] = my_serializer
- end
+ VCR.configure do |config|
+ config.cassette_serializers[:my_custom_serializer] = my_serializer
+ end
Your serializer must implement the following methods:
View
14 features/request_matching/uri_without_param.feature
@@ -9,7 +9,10 @@ Feature: URI without param(s)
common need to match on a URI and ignore particular query parameters, VCR
provides an easier way:
- :match_requests_on => [:method, VCR.request_matchers.uri_without_param(:timestamp)]
+ :match_requests_on => [
+ :method,
+ VCR.request_matchers.uri_without_param(:timestamp)
+ ]
`uri_without_param` also has a plural alias (i.e. `uri_without_params(:timestamp, :session)`)
@@ -70,7 +73,8 @@ Feature: URI without param(s)
c.hook_into :fakeweb
c.cassette_library_dir = 'cassettes'
c.default_cassette_options = {
- :match_requests_on => [:method, VCR.request_matchers.uri_without_param(:timestamp)]
+ :match_requests_on => [:method,
+ VCR.request_matchers.uri_without_param(:timestamp)]
}
end
@@ -79,11 +83,13 @@ Feature: URI without param(s)
end
VCR.use_cassette('example') do
- puts "Response for bar: " + response_body_for(:get, search_uri("bar"))
+ puts "Response for bar: " +
+ response_body_for(:get, search_uri("bar"))
end
VCR.use_cassette('example') do
- puts "Response for foo: " + response_body_for(:get, search_uri("foo"))
+ puts "Response for foo: " +
+ response_body_for(:get, search_uri("foo"))
end
"""
When I run `ruby uri_without_param_matcher.rb`
View
3  features/test_frameworks/rspec_metadata.feature
@@ -76,7 +76,8 @@ Feature: Usage with RSpec metadata
"""ruby
require 'spec_helper'
- describe "Using an options hash", :vcr => { :cassette_name => "example", :record => :new_episodes } do
+ vcr_options = { :cassette_name => "example", :record => :new_episodes }
+ describe "Using an options hash", :vcr => vcr_options do
it 'uses the provided cassette name' do
VCR.current_cassette.name.should == "example"
end
Please sign in to comment.
Something went wrong with that request. Please try again.