From 6966ea94524e31a851d750dc4bf82826daedb372 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Thu, 1 Feb 2018 21:12:36 +0900 Subject: [PATCH] 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 --- spec/lib/extensions/active_record_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/extensions/active_record_spec.rb b/spec/lib/extensions/active_record_spec.rb index c9336a6..d407943 100644 --- a/spec/lib/extensions/active_record_spec.rb +++ b/spec/lib/extensions/active_record_spec.rb @@ -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