summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-04-30 10:38:48 +0200
committerSamuel Giddins <segiddins@segiddins.me>2017-06-13 11:12:23 -0500
commit7cc28a11d8bd38d0e3a87879bdd19e2a2e34ebbc (patch)
treee25bc61202c153ec28e98b37067c2aa1b6392f62 /Rakefile
parent3871bd602e2d8db3eb21e554ea60157e464df7d9 (diff)
downloadbundler-7cc28a11d8bd38d0e3a87879bdd19e2a2e34ebbc.tar.gz
[Rakefile] Allow re-recording all VCR cassettes
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 432f46880c..00b0649f7d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -103,9 +103,18 @@ begin
rm_rf "tmp"
end
- desc "Run the real-world spec suite (requires internet)"
+ desc "Run the real-world spec suite"
task :realworld => %w[set_realworld spec]
+ namespace :realworld do
+ desc "Re-record cassettes for the realworld specs"
+ task :record => %w[set_record realworld]
+
+ task :set_record do
+ ENV["BUNDLER_SPEC_FORCE_RECORD"] = "TRUE"
+ end
+ end
+
task :set_realworld do
ENV["BUNDLER_REALWORLD_TESTS"] = "1"
end