Class: SqlTestRunner::ExpectationNotMetError

Inherits:
Struct
  • Object
show all
Defined in:
lib/sql_test_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#caused_by_stepObject

Returns the value of attribute caused_by_step

Returns:

  • (Object)

    the current value of caused_by_step



127
128
129
# File 'lib/sql_test_runner.rb', line 127

def caused_by_step
  @caused_by_step
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



127
128
129
# File 'lib/sql_test_runner.rb', line 127

def error
  @error
end

Instance Method Details

#summaryObject



128
129
130
# File 'lib/sql_test_runner.rb', line 128

def summary
  "In #{caused_by_step.description}: #{error.message}"
end