spec/blob_spec.rb in eternity-1.1.1 vs spec/blob_spec.rb in eternity-2.0.0
- old
+ new
@@ -16,11 +16,11 @@
Base64.decode64 text
end
def wait_and_read_file(filename)
Timeout.timeout(5) do
- until File.exists?(filename) && File.size(filename) > 0
+ until File.exist?(filename) && File.size(filename) > 0
sleep 0.001
end
IO.read filename
end
rescue Timeout::Error
@@ -57,10 +57,10 @@
end
it 'Read from redis' do
connection.call 'SET', key, serialization
- refute File.exists?(filename)
+ refute File.exist?(filename)
Blob.read(:xyz, sha1).must_equal data
end
it 'Read from file' do
FileUtils.mkpath File.dirname(filename)
\ No newline at end of file