Sha256: 84fe1428c556f34994cdbd8bc9c9c5d6b45eb356ecafea3c48d8c5fa1b610550
Contents?: true
Size: 485 Bytes
Versions: 1
Compression:
Stored size: 485 Bytes
Contents
module AktionTest module Matchers module FileSystem def be_a_file FileExistanceMatcher.new end class FileExistanceMatcher < Matchers::Base def initialize end def matches?(subject) @subject = subject File.exists? @subject end protected def expectation "#{@subject} to be a file" end def problem "" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aktion_test-0.1.0 | lib/aktion_test/matchers/file_system/be_a_file.rb |