test/integration_helper.rb in peddler-0.7.11 vs test/integration_helper.rb in peddler-0.8.0
- old
+ new
@@ -38,12 +38,12 @@
end
end
end
def setup
- VCR.insert_cassette(api_name)
+ ENV['LIVE'] ? VCR.turn_off! : VCR.insert_cassette(api_name)
end
def teardown
- VCR.eject_cassette
+ VCR.eject_cassette if VCR.turned_on?
end
end