Module: RSpec::ExpectationHelper::It
- Includes:
- Shared
- Defined in:
- lib/r_spec/expectation_helper/it.rb
Overview
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.
Instance Method Details
#expect(value = self.class.superclass, &block) ⇒ Block, Value
Create an expectation for a spec.
24 25 26 |
# File 'lib/r_spec/expectation_helper/it.rb', line 24 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.
36 37 38 |
# File 'lib/r_spec/expectation_helper/it.rb', line 36 def is_expected expect { subject } end |