Skip to content

Commit

Permalink
scope vcr cassettes by ruby major.minor subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
rossta committed Apr 10, 2014
1 parent ffc2db5 commit dff3381
Show file tree
Hide file tree
Showing 15 changed files with 286 additions and 207 deletions.
5 changes: 3 additions & 2 deletions spec/support/vcr.rb
Expand Up @@ -3,7 +3,8 @@
require 'fakeweb'

VCR.configure do |c|
c.cassette_library_dir = 'spec/vcr'
ruby_major_minor = RUBY_VERSION.split('.')[0,2].join('.')
c.cassette_library_dir = "spec/vcr/#{ruby_major_minor}"
c.allow_http_connections_when_no_cassette = true
c.hook_into :fakeweb
end
Expand All @@ -19,4 +20,4 @@
end
VCR.use_cassette(name, :record => example.metadata[:record]) { example.call }
end
end
end

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dff3381

Please sign in to comment.