On Fri, Apr 10, 2009 at 5:29 PM, John Goodsen <[email protected]> wrote:
> 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? > You may have run into a bug with cucumber_java. It hasn't undergone the same scrutiny as cucumber yet. Can you modify the simple example in cucumber_java so that this is reproducible for others? Then create a ticket where you describe the exact steps to reproduce the error. Cheers, Aslak > > thanks for any help, > > John > > > > On Thu, Apr 9, 2009 at 2:19 PM, John Goodsen <[email protected]> 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 >> [email protected] Lean/Agile/XP/Scrum Coaching and Training >> http://www.radsoft.com Ruby on Rails and Java Solutions >> > > > > -- > John Goodsen RADSoft / Better Software Faster > [email protected] Lean/Agile/XP/Scrum Coaching and Training > http://www.radsoft.com Ruby on Rails and Java Solutions > > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users >
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
