Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Be

Public Class Methods

new(*args, &block) click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 75
def initialize(*args, &block)
  @args = args
end

Public Instance Methods

failure_message_for_should() click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 83
def failure_message_for_should
  "expected #{@actual.inspect} to evaluate to true"
end
failure_message_for_should_not() click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 87
def failure_message_for_should_not
  "expected #{@actual.inspect} to evaluate to false"
end
match(_, actual) click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 79
def match(_, actual)
  !!actual
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.