[rspec-users] Background and scenario outline interaction

Aslak Hellesøy aslak.hellesoy at gmail.com
Sat Apr 25 04:05:57 EDT 2009

Den 25. april. 2009 kl. 00.22 skrev Jim Morris <wolfmanjm at gmail.com>:

> Hi,
> I was surprised by this so I suspect it may be a bug.
> I have a Scenario Outline, and a Background in my Feature and nothing
> else,
> The Background got executed 1 more time than expected.
> Details are the Scenario Outline had 4 entries in the table, so I
> expected 4 scenarios to get executed, and the Background to get
> executed before each Scenario.
> What happened was the Background got executed once initially, then
> once for each entry on the outline table, the After scenario hook got
> correctly executed after each of the 4 scenarios, but not after the
> first Background (understandably as there was no scenario executed).

Gist.github.com feature, output and expected output please

> Is this a bug or feature ;)
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list