Sha256: d85799f8d5c64c4fde694051901aa89ff6878025e16a7802071c0b804e6f4f33
Contents?: true
Size: 387 Bytes
Versions: 17
Compression:
Stored size: 387 Bytes
Contents
module FileExistMatcher def exist(name) FileExistMatcher.new(name) end class FileExistMatcher def initialize(name) @name = name end def matches?(what) what.exist?(@name) end def failure_message "Expected file '#{@name}' to exist" end def negative_failure_message "Expected file '#{@name}' to not exist" end end end
Version data entries
17 entries across 17 versions & 1 rubygems