update for auto step generation

This commit is contained in:
John Bintz 2012-04-19 11:05:42 -04:00
parent c3ec22b326
commit 7718ca1c3f

View File

@ -167,6 +167,22 @@ Flowerbox.World ->
Put = 'some stuff back' Put = 'some stuff back'
callback() callback()
{% endhighlight %} {% endhighlight %}
## Auto-generate missing steps
### (see [cucumber-step_writer](http://github.com/johnbintz/cucumber-step_writer) for my philosophy)
{% highlight ruby %}
# js-features/spec_helper.rb
Flowerbox.configure do |c|
c.report_with :verbose
c.reporters.add(
:step_writer,
:target => 'js-features/step_definitions',
:on_finish => lambda { |dir| system %{open #{dir}} }
)
end
{% endhighlight %}
--- ---
# Flowerbox! Yea...wha? # Flowerbox! Yea...wha?