Class: TestMessage

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

Overview

Captures a generic test message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, message) ⇒ TestMessage

Returns a new instance of TestMessage



56
57
58
59
# File 'lib/testresult.rb', line 56

def initialize(name, message)
  @name = name
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message



54
55
56
# File 'lib/testresult.rb', line 54

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name



54
55
56
# File 'lib/testresult.rb', line 54

def name
  @name
end

Instance Method Details

#inspectObject



61
62
63
# File 'lib/testresult.rb', line 61

def inspect
  { :name => @name, :message => @message }
end