Cucumber 0.3.3 - Examples:

Am I correct when I infer that the “Examples” keyword is now only valid
in a Scenario Outline? If so, in what version did this change take
place?

James B. wrote:

Am I correct when I infer that the “Examples” keyword is now only valid
in a Scenario Outline? If so, in what version did this change take
place?

Yes… “Examples” is only valid in Scenario Outlines, but you can also
use “Scenarios” as well. I don’t remember being able to use “Examples”
outside of the of Scenario Outlines. Where were you using it before?
My guess is that if you were using it before it was an unintentional
feature that was removed when things were cleaned up. Aslak or Joesph
could give you a more definitive answer. In short, I don’t know what
version this change happened in- sorry.

-Ben

Ben M. wrote:

In short, I don’t know what version this change happened in- sorry.

It was just idle curiosity that prompted the question.

Am I correct when I infer that the “Examples” keyword is now only valid
in a Scenario Outline? If so, in what version did this change take
place?

From version 0.2.0 (released on 2009-03-18).
See History.txt for details. Excerpt:

  • “More Examples” is gone. “Scenario” + “More Examples” is no longer
    supported. Use “Scenario Outline” + “Examples” instead.

Aslak

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs