Module: Waterpig::AutoSnap

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

Class Method Summary collapse

Class Method Details

.included(group) ⇒ Object


11
12
13
14
# File 'lib/waterpig/snap-step.rb', line 11

def self.included(group)
  description_args = group.[:description_args] || group[:example_group][:description_args]
  group.[:snapshots_into] = description_args.first.downcase.gsub(/\W+/, "_").sub(/^_*/,'').sub(/_*$/,'')
end