Sha256: f7f1effb1914bb527ce487551bd9e77e9207b0b499ac97bdc98bb2661b2f4bc7
Contents?: true
Size: 746 Bytes
Versions: 41
Compression:
Stored size: 746 Bytes
Contents
module Spec module Story class StepMother def initialize @steps = StepGroup.new end def use(new_step_group) @steps << new_step_group end def store(type, step) @steps.add(type, step) end def find(type, unstripped_name) name = unstripped_name.strip if @steps.find(type, name).nil? @steps.add(type, Step.new(name) do raise Spec::Example::ExamplePendingError.new("Unimplemented step: #{name}") end ) end @steps.find(type, name) end def clear @steps.clear end def empty? @steps.empty? end end end end
Version data entries
41 entries across 41 versions & 10 rubygems