class RSpec::Matchers::BuiltIn::BeTruthy

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/rspec/matchers/built_in/be.rbs

class RSpec::Matchers::BuiltIn::BeTruthy < RSpec::Matchers::BuiltIn::BaseMatcher
  def match: (nil _, true actual) -> true
end

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

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  "expected: truthy value\n     got: #{actual_formatted}"
end

def failure_message_when_negated

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message_when_negated
  "expected: falsey value\n     got: #{actual_formatted}"
end

def match(_, actual)

Experimental RBS support (using type sampling data from the type_fusion project).

def match: (nil _, true actual) -> true

This signature was generated using 1 sample from 1 application.

def match(_, actual)
  !!actual
end