class RSpec::Matchers::BuiltIn::BeFalsey

@api private Provides the implementation for ‘be_falsey`. Not intended to be instantiated directly.

Public Instance Methods

failure_message() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/be.rb, line 33
def failure_message
  "expected: falsey value\n     got: #{actual_formatted}"
end
failure_message_when_negated() click to toggle source

@api private @return [String]

# File lib/rspec/matchers/built_in/be.rb, line 39
def failure_message_when_negated
  "expected: truthy value\n     got: #{actual_formatted}"
end

Private Instance Methods

match(_, actual) click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 45
def match(_, actual)
  !actual
end