Class: GreenPepper::Expectation
- Inherits:
-
Object
- Object
- GreenPepper::Expectation
- Defined in:
- lib/greenpepper/freetext.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#received ⇒ Object
Returns the value of attribute received.
Instance Method Summary collapse
- #check_result ⇒ Object
-
#initialize(expected) ⇒ Expectation
constructor
A new instance of Expectation.
Constructor Details
#initialize(expected) ⇒ Expectation
Returns a new instance of Expectation.
156 157 158 |
# File 'lib/greenpepper/freetext.rb', line 156 def initialize(expected) @expected = expected end |
Instance Attribute Details
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
154 155 156 |
# File 'lib/greenpepper/freetext.rb', line 154 def expected @expected end |
#received ⇒ Object
Returns the value of attribute received.
155 156 157 |
# File 'lib/greenpepper/freetext.rb', line 155 def received @received end |
Instance Method Details
#check_result ⇒ Object
160 161 162 |
# File 'lib/greenpepper/freetext.rb', line 160 def check_result @expected == @received end |