Class: SubstanceTester
- Includes:
- Spec::Matchers
- Defined in:
- lib/gems/rspec-1.1.11/spec/spec/matchers/exist_spec.rb
Instance Attribute Summary
Attributes included from Spec::Matchers::ModuleMethods
Instance Method Summary collapse
-
#initialize(substance) ⇒ SubstanceTester
constructor
A new instance of SubstanceTester.
- #should_exist ⇒ Object
Methods included from Spec::Matchers
#be, #be_close, #change, #eql, #equal, #exception_from, #exist, #fail, #fail_with, #have, #have_at_least, #have_at_most, #include, #map_specs, #match, #method_missing, #raise_error, #respond_to, #run_with, #satisfy, #simple_matcher, #smart_match, #throw_symbol
Methods included from Spec::Matchers::ModuleMethods
#clear_generated_description, #generated_description
Constructor Details
#initialize(substance) ⇒ SubstanceTester
Returns a new instance of SubstanceTester.
18 19 20 |
# File 'lib/gems/rspec-1.1.11/spec/spec/matchers/exist_spec.rb', line 18 def initialize substance @substance = substance end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Spec::Matchers
Instance Method Details
#should_exist ⇒ Object
21 22 23 |
# File 'lib/gems/rspec-1.1.11/spec/spec/matchers/exist_spec.rb', line 21 def should_exist @substance.should exist end |