Added VCR config to rake task

Rodrigo Alvarez committed Jan 17, 2013
commit 08f32220e7af13bd9a80d81889503144416cfea0
Showing 1 changed file with 5 additions and 0 deletions
Rakefile +5 -0
@@ @@ -4,6 +4,11 @@ require "locomotive/builder"
namespace :site do
task :pull do
+ VCR.configure do |c|
+ c.cassette_library_dir = File.expand_path(File.dirname(__FILE__) + '/spec/integration/cassettes')
+ c.hook_into :webmock # or :fakeweb
+ end
+
VCR.use_cassette('pull') do
Locomotive::Builder.pull("site", "http://locomotive.engine.dev:3000", "admin@locomotivecms.com", "locomotive")
end