Permalink
Browse files

Add task to re-migrate spec fixtures.

  • Loading branch information...
1 parent 727510f commit 04e25959233c22019629966813ab41b2e6006d53 @myronmarston committed Oct 31, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
@@ -95,6 +95,15 @@ task :release => [:require_ruby_18, :prep_relish_release, :relish]
task :test => :spec
load './lib/vcr/tasks/vcr.rake'
+namespace :vcr do
+ task :reset_spec_cassettes do
+ ENV['DIR'] = 'spec/fixtures'
+ def VCR.version; "2.0.0"; end
+ sh "git checkout v2.0.0.beta1 -- spec/fixtures"
+ end
+
+ task :migrate_cassettes => :reset_spec_cassettes
+end
desc "Migrate cucumber cassettes"
task :migrate_cucumber_cassettes do

0 comments on commit 04e2595

Please sign in to comment.