diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-12-23 15:58:46 +0100 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-06-13 11:12:22 -0500 |
commit | 3cd996c3a62a7b95e18de2982d0fb5e6daf159c4 (patch) | |
tree | e8f39e10f2256cbb17d817e1ea6432e82ae0d644 | |
parent | 991a5a77d7597575ecde5e696b5a09364ce30618 (diff) | |
download | bundler-3cd996c3a62a7b95e18de2982d0fb5e6daf159c4.tar.gz |
Use a single cassette for the realworld specs
-rw-r--r-- | spec/realworld/edgecases_spec.rb | 1 | ||||
-rw-r--r-- | spec/support/artifice/vcr.rb | 2 | ||||
-rw-r--r-- | spec/support/helpers.rb | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/spec/realworld/edgecases_spec.rb b/spec/realworld/edgecases_spec.rb index 8787a2d40f..e91e1b1928 100644 --- a/spec/realworld/edgecases_spec.rb +++ b/spec/realworld/edgecases_spec.rb @@ -3,7 +3,6 @@ RSpec.describe "real world edgecases", :realworld => true, :sometimes => true do def rubygems_version(name, requirement) ruby! <<-RUBY - ENV["BUNDLER_SPEC_VCR_CASSETTE_NAME"] = #{RSpec.current_example.full_description.dump} require #{File.expand_path("../../support/artifice/vcr.rb", __FILE__).dump} require "bundler" require "bundler/source/rubygems/remote" diff --git a/spec/support/artifice/vcr.rb b/spec/support/artifice/vcr.rb index f09f860c8b..9b35ff9629 100644 --- a/spec/support/artifice/vcr.rb +++ b/spec/support/artifice/vcr.rb @@ -26,7 +26,7 @@ VCR.configure do |config| end VCR.insert_cassette \ - ENV.fetch("BUNDLER_SPEC_VCR_CASSETTE_NAME"), + ENV.fetch("BUNDLER_SPEC_VCR_CASSETTE_NAME") { "realworld" }, :record => :new_episodes, :match_requests_on => [:method, :uri, :query] diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index 2d60938fcb..ffad652fc0 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -105,7 +105,6 @@ module Spec end end if artifice - env["BUNDLER_SPEC_VCR_CASSETTE_NAME"] = RSpec.current_example.full_description requires << File.expand_path("../artifice/#{artifice}", __FILE__) end |