module RSpec::Clone::ExpectationHelper::Its

{RSpec::Clone::Dsl.its}'s expectation helper module.

Public Instance Methods

is_expected() click to toggle source

Wraps the target of an expectation with the actual value.

@return [Block] The wrapped target of an expectation.

@example

is_expected # => #<RSpec::Clone::ExpectationTarget::Block:0x00007f @callable=#<Proc:0x00007f>>

@api public

# File lib/r_spec/clone/expectation_helper/its.rb, line 21
def is_expected
  ExpectationTarget::Block.new(method(:actual))
end