class File

Public Instance Methods

assert_exist!() click to toggle source
# File lib/code-assertions.rb, line 64
def assert_exist!
    assert("The specified file should exist: `#{self.path}`.") { FileTest.exist?(self.path) }
    
    self
end
assert_not_exist!(filename) click to toggle source
# File lib/code-assertions.rb, line 70
def assert_not_exist!(filename)
    assert("The specified file should not exist: `#{self.path}`.") { !FileTest.exist?(self.path) }
    
    self
end