Module: Museo::MinitestIntegration

Includes:
TestIntegration
Defined in:
lib/museo/minitest_integration.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from TestIntegration

#_add_snapshot_helper_methods, #_museo_setup, #_museo_teardown, #_redefine_render_with_snapshot_layout, #_remove_snapshot_helper_methods

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/museo/minitest_integration.rb', line 5

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#assert_snapshotObject



25
26
27
28
29
30
31
# File 'lib/museo/minitest_integration.rb', line 25

def assert_snapshot
  assert_equal(
    Snapshot::Minitest.new(self).body,
    Snapshot.sanitize_response(response.body),
    "Snapshot did not match",
  )
end