Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Re-upgrade to rspec 2.9.0.rc2.

On 2.9, metadata filter lambdas are only invoked if the named key is present in the metadata hash, so the old way we made :skip_vcr_reset work is no longer supported.
  • Loading branch information...
commit 4fbcc9b13d64a20e504a2c0549c2b9bf4593c474 1 parent 4ac5db2
@myronmarston authored
Showing with 6 additions and 4 deletions.
  1. +5 −3 spec/spec_helper.rb
  2. +1 −1  vcr.gemspec
View
8 spec/spec_helper.rb
@@ -48,9 +48,11 @@ def reset!(hook = :fakeweb)
config.treat_symbols_as_metadata_keys_with_true_values = true
tmp_dir = File.expand_path('../../tmp/cassette_library_dir', __FILE__)
- config.before(:each, :skip_vcr_reset => lambda { |v| v != true }) do
- VCR.reset!
- VCR.configuration.cassette_library_dir = tmp_dir
+ config.before(:each) do
+ unless example.metadata[:skip_vcr_reset]
+ VCR.reset!
+ VCR.configuration.cassette_library_dir = tmp_dir
+ end
end
config.after(:each) do
View
2  vcr.gemspec
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'cucumber', '~> 1.1.4'
s.add_development_dependency 'aruba', '~> 0.4.11'
- s.add_development_dependency 'rspec', '~> 2.8.0'
+ s.add_development_dependency 'rspec', '~> 2.9.0.rc2'
s.add_development_dependency 'shoulda', '~> 2.9.2'
s.add_development_dependency 'fakeweb', '~> 1.3.0'
Please sign in to comment.
Something went wrong with that request. Please try again.