Exception: DirectoryAssay
- Defined in:
- lib/assay/directory_assay.rb
Overview
Assert the existance of a directory with ‘File.directory?` call.
Constant Summary
Constants inherited from Assertion
Constants included from Assay::Assertable
Class Method Summary collapse
-
.pass?(path) ⇒ Boolean
Check assertion using ‘File.file?` method.
Methods inherited from Assertion
by_name, by_operator, inherited, register, subclasses
Methods included from Assay::Assertable
#[], #assert!, #assert_message, #assertive_name, #assertor, #fail?, #operator, #pass?, #refute!, #refute_message
Class Method Details
.pass?(path) ⇒ Boolean
Check assertion using ‘File.file?` method.
12 13 14 |
# File 'lib/assay/directory_assay.rb', line 12 def self.pass?(path) File.directory?(path) end |