Module: RSpec::ExpectationHelper::Its

Includes:
Shared
Defined in:
lib/r_spec/expectation_helper/its.rb

Overview

Dsl.its‘s expectation helper module.

Instance Method Summary collapse

Instance Method Details

#is_expectedBlock

Wraps the target of an expectation with the actual value.

Examples:

is_expected # => #<RSpec::ExpectationTarget::Block:0x00007fb6b8263df8 @callable=#<Proc:0x00007fb6b8263e20>>

Returns:

  • (Block)

    The wrapped target of an expectation.



20
21
22
# File 'lib/r_spec/expectation_helper/its.rb', line 20

def is_expected
  ExpectationTarget::Block.new(method(:actual))
end