spec/spec_helper.rb in redis-objects-2.0.0.alpha vs spec/spec_helper.rb in redis-objects-2.0.0.beta

- old
+ new

@@ -8,11 +8,11 @@ if $0 =~ /\brspec$/ raise "\n===\nThese tests are in bacon, not rspec. Try: bacon #{ARGV * ' '}\n===\n" end # For the incompatible change from redis.rb -Redis.exists_returns_integer = true +# Redis.exists_returns_integer = true # Avoid phantom remote test failures RUNNING_LOCALLY = !ENV['TRAVIS'] # Code coverage reports @@ -59,10 +59,10 @@ pid = File.read(pidfile).to_i puts "=> Killing #{REDIS_BIN} with pid #{pid}" Process.kill "TERM", pid Process.kill "KILL", pid File.unlink pidfile - File.unlink rdbfile if File.exists? rdbfile + File.unlink rdbfile if File.exist? rdbfile end # Start redis-server except under JRuby unless defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" start_redis