Exception: Easytest::MatchError

Inherits:
Error
  • Object
show all
Defined in:
lib/easytest/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, actual:, expected:) ⇒ MatchError

Returns a new instance of MatchError.



10
11
12
13
14
# File 'lib/easytest/errors.rb', line 10

def initialize(message:, actual:, expected:)
  super(message)
  @actual = actual
  @expected = expected
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual.



7
8
9
# File 'lib/easytest/errors.rb', line 7

def actual
  @actual
end

#expectedObject (readonly)

Returns the value of attribute expected.



8
9
10
# File 'lib/easytest/errors.rb', line 8

def expected
  @expected
end