Class: GreenPepper::FreeTextExampleFactory
- Inherits:
-
Object
- Object
- GreenPepper::FreeTextExampleFactory
- Defined in:
- lib/greenpepper/factory/freetextexamplefactory.rb
Instance Method Summary collapse
Instance Method Details
#build_example ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/greenpepper/factory/freetextexamplefactory.rb', line 19 def build_example example = FreeTextExample.new @scenario.fixture_name @scenario.lines.each{ |line| example.add_action line.strip } @scenario = nil example end |
#need_more_content? ⇒ Boolean
15 16 17 |
# File 'lib/greenpepper/factory/freetextexamplefactory.rb', line 15 def need_more_content? @scenario ? false : true end |
#push_content(scenario) ⇒ Object
11 12 13 |
# File 'lib/greenpepper/factory/freetextexamplefactory.rb', line 11 def push_content(scenario) @scenario = scenario end |