Added const_missing (autospec again)
This commit is contained in:
parent
29dd607869
commit
99880eae06
@ -126,6 +126,10 @@ module FakeFS
|
|||||||
!!FileSystem.find(path)
|
!!FileSystem.find(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.const_missing(name)
|
||||||
|
RealFile.const_get(name)
|
||||||
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
alias_method :exists?, :exist?
|
alias_method :exists?, :exist?
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user