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'|
end
I think that flows well too
Ashley
--
blog @ http://aviewfromafar.net/
linked-in @ http://www.linkedin.com/in/ashleymoran
currently @ home
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users