Class: RSpec::Clone::ExpectationTarget::Block Private

Inherits:
Base
  • Object
show all
Defined in:
lib/r_spec/clone/expectation_target/block.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Note:

‘RSpec::Clone::ExpectationTarget::Block` is not intended to be instantiated directly by users. Use `expect` instead.

Wraps the target of an expectation with a block.

Examples:

expect { something } # => ExpectationTarget::Block wrapping something

# used with `to`
expect { actual }.to be(42)

# with `not_to`
expect { actual }.not_to be(4)

Method Summary

Methods inherited from Base

#initialize, #not_to, #to

Constructor Details

This class inherits a constructor from RSpec::Clone::ExpectationTarget::Base