class RSpec::Clone::ExpectationTarget::Block
Wraps the target of an expectation with a block.
@example
expect { something } # => ExpectationTarget::Block wrapping something # used with `to` expect { actual }.to be(42) # with `not_to` expect { actual }.not_to be(4)
@note `RSpec::Clone::ExpectationTarget::Block` is not intended to be
instantiated directly by users. Use `expect` instead.
Protected Instance Methods
absolute_requirement(matcher:, negate:)
click to toggle source
@param matcher [#matches?] The matcher. @param negate [Boolean] The assertion is positive or negative.
@return (see Base#absolute_requirement
)
@raise (see Base#absolute_requirement
)
Calls superclass method
RSpec::Clone::ExpectationTarget::Base#absolute_requirement
# File lib/r_spec/clone/expectation_target/block.rb, line 30 def absolute_requirement(matcher:, negate:) super( ::TestTube.invoke(isolate: false, matcher: matcher, negate: negate, &@input), matcher: matcher, negate: negate ) end