Class | Spec::Story::StepMother |
In: |
vendor/plugins/rspec/lib/spec/story/step_mother.rb
|
Parent: | Object |
# File vendor/plugins/rspec/lib/spec/story/step_mother.rb, line 4 4: def initialize 5: @steps = StepGroup.new 6: end
# File vendor/plugins/rspec/lib/spec/story/step_mother.rb, line 27 27: def clear 28: @steps.clear 29: end
# File vendor/plugins/rspec/lib/spec/story/step_mother.rb, line 31 31: def empty? 32: @steps.empty? 33: end
# File vendor/plugins/rspec/lib/spec/story/step_mother.rb, line 16 16: def find(type, name) 17: if @steps.find(type, name).nil? 18: @steps.add(type, 19: Step.new(name) do 20: raise Spec::Example::ExamplePendingError.new("Unimplemented step: #{name}") 21: end 22: ) 23: end 24: @steps.find(type, name) 25: end
# File vendor/plugins/rspec/lib/spec/story/step_mother.rb, line 12 12: def store(type, step) 13: @steps.add(type, step) 14: end