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:
parent
6e1b5d2e17
commit
6966ea9452
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user