Class: GreenPepper::DoWithLineReject

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

#accept?, #check?, #function?, #initialize

Constructor Details

This class inherits a constructor from GreenPepper::DoWithLine

Instance Method Details

#execute(fixture) ⇒ Object



176
177
178
179
180
181
182
183
184
185
# File 'lib/greenpepper/example/dowithexample.rb', line 176

def execute(fixture)
  begin
    res = call_func fixture
  rescue Exception => e
    res = false
  end

  return SuccessExampleResult.new if res == false
  FailureExampleResult.new
end

#reject?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/greenpepper/example/dowithexample.rb', line 187

def reject?
  true
end