Exception: Sir::Wrapper::ExpectationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sir/wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, expected, got) ⇒ ExpectationError

Returns a new instance of ExpectationError.



7
8
9
# File 'lib/sir/wrapper.rb', line 7

def initialize(msg, expected, got)
  @message = "#{msg}\n\texpected: #{expected}\n\tgot: #{got}"
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/sir/wrapper.rb', line 5

def message
  @message
end