Module: Waterpig::SnapStep

Defined in:
lib/waterpig/snap-step.rb

Class Method Summary collapse

Class Method Details

.included(steps) ⇒ Object


3
4
5
6
7
# File 'lib/waterpig/snap-step.rb', line 3

def self.included(steps)
  steps.after(:each) do |example|
    save_snapshot(example.[:snapshots_into], example.description.downcase.gsub(/\s+/, "-"))
  end
end