Sha256: 284d9e0a4b22bc067c0d0dbce39a46e9b548d63f50b22a02e849e5a551bbf39c

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

require_relative 'assertion'

# Assert the existance of a file with `File.file?` call.
#
class PathAssay < Assertion

  register :path

  #
  # Check assertion using `File.exist?` method.
  #
  def self.pass?(path)
    File.exist?(path)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assay-0.4.1 lib/assay/path_assay.rb
assay-0.4.0 lib/assay/path_assay.rb