Sha256: 3263d5b72a4cb20bd1aa682cb7f20a43b5b4fc51128ae6de40c12b6e784ce810
Contents?: true
Size: 641 Bytes
Versions: 3
Compression:
Stored size: 641 Bytes
Contents
class Hornsby module Helper def hornsby_scenario(*names) Hornsby.build(*names) Hornsby.copy_ivars(self) end alias :hornsby_scenarios :hornsby_scenario def hornsby_clear(*args) options = args.extract_options! Hornsby.delete_tables(*args) if options[:undo] == :all Hornsby.executed_scenarios.clear else undo = [options[:undo]].flatten.compact unless (not_found = undo - Hornsby.executed_scenarios.to_a).blank? raise(ArgumentError, "Scenario(s) #{not_found} not found") end Hornsby.executed_scenarios -= undo end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
sinsiliux-hornsby-0.4.0 | lib/hornsby/helper.rb |
sinsiliux-hornsby-0.4.1 | lib/hornsby/helper.rb |
hornsby-0.4.2 | lib/hornsby/helper.rb |