[rspec-users] Too Clever?

aslak hellesoy aslak.hellesoy at gmail.com
Thu Oct 23 14:39:03 EDT 2008

On Thu, Oct 23, 2008 at 7:20 PM, Michael Latta <lattam at mac.com> wrote:
> It appears we were too clever, but I think this would be a reasonable use of
> stories.
> We tried to have a story file run with 2 different sets of steps to use the
> same story against both the UI using selenium and against the server API
> using regular get/put/post.  This way we could spec the server API and the
> UI while ensuring they are in sync for the scenario in question.  But
> stories get confused when there are stories or scenarios with the same
> names.
> Does Cucumber deal with this any better than the story runner?  Given that
> it searches for steps rather than having them declared, I would think you
> can not share story files for different steps?

I've done this on a couple of projects.


Set up two tasks and use --require. Or use --profile.

See http://github.com/aslakhellesoy/cucumber/wikis/migration-from-rspec-stories
for details.


> Michael
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list