Module: RSpec::Clone::ExpectationHelper::It Private
- Includes:
- Shared
- Defined in:
- lib/r_spec/clone/expectation_helper/it.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Dsl.it‘s expectation helper module.
Instance Method Summary collapse
-
#expect(value = self.class.superclass, &block) ⇒ Block, Value
Create an expectation for a spec.
-
#is_expected ⇒ Block
Wraps the target of an expectation with the subject as actual value.
Methods included from Shared
#be, #be_an_instance_of, #be_false, #be_nil, #be_true, #be_within, #change, #eq, #match, #raise_exception, #satisfy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RSpec::Clone::ExpectationHelper::Shared
Instance Method Details
#expect(value = self.class.superclass, &block) ⇒ Block, Value
Create an expectation for a spec.
25 26 27 |
# File 'lib/r_spec/clone/expectation_helper/it.rb', line 25 def expect(value = self.class.superclass, &block) ExpectationTarget.call(self.class.superclass, value, block) end |
#is_expected ⇒ Block
Wraps the target of an expectation with the subject as actual value.
37 38 39 |
# File 'lib/r_spec/clone/expectation_helper/it.rb', line 37 def is_expected expect { subject } end |