so I'm still stumped... how do I tell keep cucumber from loading the *SAME*
steps more than once when I run multiple scenarios?  I can't be the only
person to experience this... I must be doing something wrong.  I'm loading
step classes in my env.rb file.  When I add steps in cucumber/jruby using
the register_steps() method, my test is acting like the step classes is
getting added again for each scenario?

thanks for any help,

John


On Thu, Apr 9, 2009 at 2:19 PM, John Goodsen <jgood...@radsoft.com> wrote:

> Hi all,
>
> I'm not quite sure I understand how env.rb is loaded in the cucumber/jruby
> world.  I have
> a directory structure like this:
>
> stories/fulfillment_status_tracking
> stories/fulfillment_status_tracking/main_success.feature
> stories/fulfillment_status_tracking/test.feature
> stories/regular_billme_single_title_subscription
> stories/regular_billme_single_title_subscription/form_validation.feature
> stories/regular_billme_single_title_subscription/main_success.feature
> stories/support
> stories/support/env.rb
>
>
> My env.rb file simply loads my Java step class and adds it, here's what it
> looks like:
>
> ----------- env.rb -----------
>
> require 'cucumber/java'
> import 'com.timeinc.ecommerce.storytests.cucumber.NavigationSteps'
>
> register_steps(NavigationSteps)
> SeleniumController.markStepsLoaded()
>
> -----------
>
> but when I run my tests with:  jruby -S cucumber -r stories/support/env.rb
>
> I am getting Ambiguous match of my steps - but I only have a single class
> of steps, NavigationSteps.
>
> any ideas what's going on?
>
> --
> John Goodsen                 RADSoft / Better Software Faster
> jgood...@radsoft.com            Lean/Agile/XP/Scrum Coaching and Training
> http://www.radsoft.com          Ruby on Rails and Java Solutions
>



-- 
John Goodsen                 RADSoft / Better Software Faster
jgood...@radsoft.com            Lean/Agile/XP/Scrum Coaching and Training
http://www.radsoft.com          Ruby on Rails and Java Solutions
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to