Permalink
Browse files

The VCR fixture differs between Ruby versions, so clean it.

  • Loading branch information...
1 parent 12919c7 commit d3bd298960fe7bbe6bd57cff8c34d80e7c16fcd4 @alloy alloy committed Mar 24, 2012
Showing with 10 additions and 3 deletions.
  1. +10 −3 Rakefile
View
@@ -66,16 +66,16 @@ namespace :spec do
end
desc "Run the functional specs"
- task :functional => [:unpack_fixture_tarballs, "ext:cleanbuild"] do
+ task :functional => :clean_env do
sh "bacon #{specs('functional/**')}"
end
desc "Run the integration spec"
- task :integration => [:unpack_fixture_tarballs, "ext:cleanbuild"] do
+ task :integration => :clean_env do
sh "bacon spec/integration_spec.rb"
end
- task :all => [:unpack_fixture_tarballs, "ext:cleanbuild"] do
+ task :all => :clean_env do
sh "bacon #{specs('**')}"
end
@@ -104,6 +104,13 @@ namespace :spec do
end
end
end
+
+ desc "Removes the stored VCR fixture"
+ task :clean_vcr do
+ sh "rm -f spec/fixtures/vcr/tarballs.yml"
+ end
+
+ task :clean_env => [:clean_vcr, :unpack_fixture_tarballs, "ext:cleanbuild"]
end
namespace :examples do

2 comments on commit d3bd298

Contributor

lukeredpath replied Mar 26, 2012

This is unfortunate. It would be nice to keep the VCR fixtures. I wonder if we can write the cassettes to a path based on the Ruby version string?

Owner

alloy replied Mar 26, 2012

Good idea!

Fixed in 23692ea.

Please sign in to comment.