Class: SubstanceTester

Inherits:
Object show all
Includes:
Spec::Matchers
Defined in:
lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb

Instance Method Summary collapse

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

#create, #define

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_existObject



21
22
23
# File 'lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 21

def should_exist
  @substance.should exist
end