Class: Spex::FileCheck
Direct Known Subclasses
ChangedGroupCheck, ChangedModeCheck, ChangedOwnerCheck, CreatedCheck, ModifiedCheck, RemovedCheck
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
Methods inherited from Check
[], #active?, #after, as, #before, each, example, examples, #initialize, option, options, #prepare, registry, #to_s, #validate!
Constructor Details
This class inherits a constructor from Spex::Check
Instance Method Details
#kind ⇒ Object
4 5 6 |
# File 'lib/spex/checks/file_check.rb', line 4 def kind [:type] ? [:type].to_sym : :any end |
#kind_name ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/spex/checks/file_check.rb', line 8 def kind_name case kind when :file 'a regular file' when :directory 'a directory' else 'a file' end end |