Exception: Chamomile::Testing::SnapshotMismatch

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chamomile/testing.rb

Overview

Raised when a snapshot assertion fails.

Instance Method Summary collapse

Constructor Details

#initialize(name, expected, actual) ⇒ SnapshotMismatch

Returns a new instance of SnapshotMismatch.



129
130
131
# File 'lib/chamomile/testing.rb', line 129

def initialize(name, expected, actual)
  super("Snapshot '#{name}' mismatch.\nExpected:\n#{expected}\n\nActual:\n#{actual}")
end