Class: BeFalseMatcher

Inherits:
Object show all
Defined in:
lib/extensions/rhospec/rhospec.rb,
lib/extensions/mspec/mspec/matchers/be_false.rb

Instance Method Summary collapse

Instance Method Details

#failure_messageObject



373
374
375
# File 'lib/extensions/rhospec/rhospec.rb', line 373

def failure_message
  ["Expected #{@actual.inspect}", "to be false"]
end

#matches?(actual) ⇒ Boolean

Returns:

  • (Boolean)


368
369
370
371
# File 'lib/extensions/rhospec/rhospec.rb', line 368

def matches?(actual)
  @actual = actual
  @actual == false
end

#negative_failure_messageObject



377
378
379
# File 'lib/extensions/rhospec/rhospec.rb', line 377

def negative_failure_message
  ["Expected #{@actual.inspect}", "not to be false"]
end