Module: Cucumber::Persona
- Defined in:
- lib/cucumber/persona.rb,
lib/cucumber/persona/version.rb
Defined Under Namespace
Classes: BasePersona
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
Class Method Details
.create_all ⇒ Object
15 16 17 |
# File 'lib/cucumber/persona.rb', line 15 def self.create_all @personas.each { |name, persona| persona.create } end |
.define(name, &block) ⇒ Object
10 11 12 13 |
# File 'lib/cucumber/persona.rb', line 10 def self.define(name, &block) @personas ||= {} @personas[name] = BasePersona.new(name, &block) end |
.find(name) ⇒ Object
5 6 7 8 |
# File 'lib/cucumber/persona.rb', line 5 def self.find(name) @personas ||= {} @personas[name] || (raise "No persona found for #{name}") end |