Aliasing File.readable? to File.exist? so Rack::File can work
This commit is contained in:
parent
54cc2b7358
commit
166ff444d9
@ -41,6 +41,9 @@ module FakeFS
|
||||
|
||||
class << self
|
||||
alias_method :exists?, :exist?
|
||||
|
||||
# Assuming that everyone can read files
|
||||
alias_method :readable?, :exist?
|
||||
end
|
||||
|
||||
def self.size(path)
|
||||
|
@ -94,6 +94,7 @@ class FakeFSTest < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
assert File.exists?(path)
|
||||
assert File.readable?(path)
|
||||
end
|
||||
|
||||
def test_file_opens_in_read_only_mode
|
||||
|
Loading…
Reference in New Issue
Block a user