test/spec_helpers_test.rb in vault-test-tools-0.4.2 vs test/spec_helpers_test.rb in vault-test-tools-1.0.0
- old
+ new
@@ -15,11 +15,11 @@
def teardown
super
FakeWeb.clean_registry
FakeWeb.allow_net_connect = true
# Using the filesystem - dirrrty
- File.unlink(STATEMENT_FILE) if File.exists?(STATEMENT_FILE)
- File.unlink(USAGE_FILE) if File.exists?(USAGE_FILE)
+ File.unlink(STATEMENT_FILE) if File.exist?(STATEMENT_FILE)
+ File.unlink(USAGE_FILE) if File.exist?(USAGE_FILE)
reset #for RR
reset_vault_specs!
end
# These are for canonical endpoints