Class: RSpec::Clone::ExpectationTarget::Value Private

Inherits:
Base
  • Object
show all
Defined in:
lib/r_spec/clone/expectation_target/value.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::Value` is not intended to be instantiated directly by users. Use `expect` instead.

Wraps the target of an expectation with a value.

Examples:

expect(something) # => ExpectationTarget::Value 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