Use File.exist? instead of File.exists?

File.exists? is deprecated in Ruby 2.1+
Ref: https://github.com/ruby/ruby/blob/v2_1_2/file.c#L1413
This commit is contained in:
yuuji.yaginuma 2018-02-01 21:12:36 +09:00
parent 6e1b5d2e17
commit 6966ea9452

View File

@ -62,6 +62,6 @@ describe 'active record' do
# Clean up DB
after(:all) do
File.delete(@db_file) if File.exists?(@db_file)
File.delete(@db_file) if File.exist?(@db_file)
end
end