mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Remove deprecation warning for File.exists?
Rspec 3.0 + Ruby 2.1.1 raises deprecation warning 'warning: File.exists? is a deprecated name, use File.exist? instead'
This commit is contained in:
parent
c9dc06fa39
commit
8aa9b2fc03
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class Pry
|
|||
end
|
||||
|
||||
def valid_file?(file)
|
||||
(File.exists?(file) && !File.directory?(file)) || Pry.eval_path == file
|
||||
(File.exist?(file) && !File.directory?(file)) || Pry.eval_path == file
|
||||
end
|
||||
|
||||
def lines_for_file(file)
|
||||
|
|
Loading…
Add table
Reference in a new issue