Class: SubstanceTester
- Includes:
- Spec::Matchers
- Defined in:
- lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb
Instance Method Summary collapse
-
#initialize(substance) ⇒ SubstanceTester
constructor
A new instance of SubstanceTester.
- #should_exist ⇒ Object
Methods included from Spec::Matchers
#be, #be_a, #be_a_kind_of, #be_an_instance_of, #be_close, #change, clear_generated_description, #eql, #equal, #exception_from, #exist, #fail, #fail_with, generated_description, #have, #have_at_least, #have_at_most, #include, #map_specs, #match, #method_missing, #raise_error, #respond_to, #run_with, #satisfy, #simple_matcher, #throw_symbol, #with_ruby, #wrap_expectation
Methods included from Spec::Matchers::DSL
Constructor Details
#initialize(substance) ⇒ SubstanceTester
Returns a new instance of SubstanceTester.
18 19 20 |
# File 'lib/vendor/plugins/rspec/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/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 21 def should_exist @substance.should exist end |