Class: Easytest::Matcher::False

Inherits:
Base
  • Object
show all
Defined in:
lib/easytest/matcher/false.rb

Instance Attribute Summary

Attributes inherited from Base

#actual, #expected, #negate

Instance Method Summary collapse

Methods inherited from Base

#initialize, #match!

Constructor Details

This class inherits a constructor from Easytest::Matcher::Base

Instance Method Details

#match?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/easytest/matcher/false.rb', line 4

def match?
  actual == expected
end

#messageObject



8
9
10
# File 'lib/easytest/matcher/false.rb', line 8

def message
  "false"
end