It is the common prefix, not the underscore. With $n and $nnn or $ntotal still fails.
Paolo On Jul 16, 4:40 pm, "Pat Maddox" <[EMAIL PROTECTED]> wrote: > What about when you make it $ntotal? Is it the common first letter or > the underscore? > > Pat > > On 7/16/08, Paolo Dona <[EMAIL PROTECTED]> wrote: > > > Hi guys, I'm facing a strange behavior that smells like a bug. > > > consider this scenario: > > > Scenario: I'm cool > > Given that I am cool 4 times out of 7 > > > and this step: > > > Given("that I am cool $n times out of $n_total") do |n, n_total| > > ... > > end > > > When running my story, this step is considered as PENDING. > > If I change the name of the second placeholder to $total, the step > > runs fine (as it should, given that it's implemented). > > > My suspect is that when placeholders share a common prefix, the step > > cannot be recognized correctly. > > Anyone having the same issue? > > > btw: quoting the placeholders doesn't change this behavior > > > keep on with the great work, > > Paolo > > _______________________________________________ > > rspec-users mailing list > > [EMAIL PROTECTED] > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > [EMAIL PROTECTED]://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users