Class: GreenPepper::Expectation

Inherits:
Object
  • Object
show all
Defined in:
lib/greenpepper/freetext.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#expectedObject (readonly)

Returns the value of attribute expected.



154
155
156
# File 'lib/greenpepper/freetext.rb', line 154

def expected
  @expected
end

#receivedObject

Returns the value of attribute received.



155
156
157
# File 'lib/greenpepper/freetext.rb', line 155

def received
  @received
end

Instance Method Details

#check_resultObject



160
161
162
# File 'lib/greenpepper/freetext.rb', line 160

def check_result
  @expected == @received
end