class BaconExpect::Matcher::BeTrue

Public Instance Methods

fail!(subject, negated) click to toggle source
# File lib/bacon-expect/matchers/be_true.rb, line 7
def fail!(subject, negated)
  raise FailedExpectation.new(FailMessageRenderer.message_for_be_true(negated, subject))
end
matches?(value) click to toggle source
# File lib/bacon-expect/matchers/be_true.rb, line 3
def matches?(value)
  value == true
end