Class: GreenPepper::DoWithLineAccept

Inherits:
DoWithLine show all
Defined in:
lib/greenpepper/example/dowithexample.rb

Instance Attribute Summary

Attributes inherited from DoWithLine

#function, #parameters, #result_column

Instance Method Summary collapse

Methods inherited from DoWithLine

#check?, #function?, #initialize, #reject?

Constructor Details

This class inherits a constructor from GreenPepper::DoWithLine

Instance Method Details

#accept?Boolean

Returns:

  • (Boolean)


170
171
172
# File 'lib/greenpepper/example/dowithexample.rb', line 170

def accept?
  true
end

#execute(fixture) ⇒ Object



164
165
166
167
168
# File 'lib/greenpepper/example/dowithexample.rb', line 164

def execute(fixture)
  res = call_func fixture
  return SuccessExampleResult.new if res == true
  FailureExampleResult.new
end