class RSpec::Matchers::BuiltIn::BeTruthy

@api private Provides the implementation for `be_truthy`. 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 10
def failure_message
  "expected: truthy 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 16
def failure_message_when_negated
  "expected: falsey value\n     got: #{actual_formatted}"
end