[rspec-users] changes to Story Runner steps

Ashley Moran work at ashleymoran.me.uk
Wed Oct 24 16:20:29 EDT 2007

On Oct 24, 2007, at 6:07 am, David Chelimsky wrote:

> steps = StepGroup.new do
>   steps do |define|
>     define.given(...) {...}
>   end
> end

I'm using "interpret", eg (without blocks)

steps = Spec::Story::StepGroup.new do |interpret|
   interpret.given "an engine for dialect: $dialect"
   interpret.when "user gets a connection object"
   interpret.when %q|and executes the query "$query"|
   interpret.then %q|user should get the result '$expected_result'|

I think that flows well too


blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home

More information about the rspec-users mailing list