Hi all,
The following only affects people who have bravely begun to experiment
with the 2 day-old plain text story runner and definable groups of
steps.
For those who fit that bill, I just committed a few changes that will
require you to make changes to your code.
The StepMatchers class is now the StepGroup class.
The step_matchers methods on PlainTextStoryRunner and StepGroup is now
just steps. So instead of defining a group like this:
# old - no longer supported
matchers = StepMatchers.new do
step_matchers do |add|
add.given(...) {...}
end
end
# new
steps = StepGroup.new do
steps do |add|
add.given(...) {...}
end
end
And actually, I''ve tried ''define'' instead of
''add'' for the block arg
and it speaks pretty nicely:
steps = StepGroup.new do
steps do |define|
define.given(...) {...}
end
end
There will be more changes coming over the next few days. Just a heads up.
On Oct 24, 2007, at 6:07 am, David Chelimsky wrote:> The following only affects people who have bravely begun to experiment > with the 2 day-old plain text story runner and definable groups of > steps.Ok, *now* I''m allowed to say that following trunk is a rollercoaster ;o) -- blog @ http://aviewfromafar.net/ linked-in @ http://www.linkedin.com/in/ashleymoran currently @ home
On 10/24/07, Ashley Moran <work at ashleymoran.me.uk> wrote:> > On Oct 24, 2007, at 6:07 am, David Chelimsky wrote: > > > The following only affects people who have bravely begun to experiment > > with the 2 day-old plain text story runner and definable groups of > > steps. > > > Ok, *now* I''m allowed to say that following trunk is a rollercoaster ;o)Throw your hands in the air, let out a scream, and embrace change. :)
On Oct 24, 2007, at 6:07 am, David Chelimsky wrote:> steps = StepGroup.new do > steps do |define| > define.given(...) {...} > end > endI''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