class RSpec::Matchers::BuiltIn::Exist
Not intended to be instantiated directly.
Provides the implementation for ‘exist`.
@api private
def does_not_match?(actual)
-
(Boolean)
-
Other tags:
- Api: - private
def does_not_match?(actual) @actual = actual @test = ExistenceTest.new @actual, @expected @test.valid_test? && !@test.actual_exists? end
def failure_message
-
(String)
-
Other tags:
- Api: - private
def failure_message "expected #{actual_formatted} to exist#{@test.validity_message}" end
def failure_message_when_negated
-
(String)
-
Other tags:
- Api: - private
def failure_message_when_negated "expected #{actual_formatted} not to exist#{@test.validity_message}" end
def initialize(*expected)
def initialize(*expected) @expected = expected end
def matches?(actual)
-
(Boolean)
-
Other tags:
- Api: - private
def matches?(actual) @actual = actual @test = ExistenceTest.new @actual, @expected @test.valid_test? && @test.actual_exists? end