Class: Spex::RemovedCheck
- Defined in:
- lib/spex/checks/removed_check.rb
Instance Attribute Summary
Attributes inherited from Check
Instance Method Summary collapse
Methods inherited from FileCheck
Methods inherited from Check
[], #active?, as, each, example, examples, #initialize, option, options, #prepare, registry, #to_s, #validate!
Constructor Details
This class inherits a constructor from Spex::Check
Instance Method Details
#after ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/spex/checks/removed_check.rb', line 17 def after if active? assert !File.exist?(target), "File still exists at #{target}" else assert File.exist?(target), "File was removed from #{target}" end end |
#before ⇒ Object
10 11 12 13 14 15 |
# File 'lib/spex/checks/removed_check.rb', line 10 def before if active? assert File.exist?(target), "File does not exist at #{target}" check_type end end |