Module: OhSnap::Minitest
- Includes:
- Helper
- Defined in:
- lib/oh_snap/minitest.rb
Overview
OhSnap helper for Minitest.
Instance Method Summary
collapse
Methods included from Helper
#save_snapshots, #setup_snapshots, #snapshot_matches
Instance Method Details
#after_teardown ⇒ Object
19
20
21
22
|
# File 'lib/oh_snap/minitest.rb', line 19
def after_teardown
save_snapshots
super
end
|
#before_setup ⇒ Object
10
11
12
13
|
# File 'lib/oh_snap/minitest.rb', line 10
def before_setup
super
setup_snapshots(path: File.dirname(File.expand_path(method(name).source_location.first)))
end
|
#snapshot(name: nil) ⇒ Object
15
16
17
|
# File 'lib/oh_snap/minitest.rb', line 15
def snapshot(name: nil)
super(name: name || self.name)
end
|