Paolo Dona
2008-Jul-16 15:16 UTC
[rspec-users] ''$'' placeholder naming can confuse your runner
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
Pat Maddox
2008-Jul-16 15:40 UTC
[rspec-users] ''$'' placeholder naming can confuse your runner
What about when you make it $ntotal? Is it the common first letter or the underscore? Pat On 7/16/08, Paolo Dona <paolo.dona at gmail.com> 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 > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Paolo Dona
2008-Jul-16 16:07 UTC
[rspec-users] ''$'' placeholder naming can confuse your runner
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" <perg... at gmail.com> wrote:> What about when you make it $ntotal? Is it the common first letter or > the underscore? > > Pat > > On 7/16/08, Paolo Dona <paolo.d... at gmail.com> 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 > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
Pat Maddox
2008-Jul-19 07:40 UTC
[rspec-users] ''$'' placeholder naming can confuse your runner
Hey Paolo, I''ve fixed this. Update your rspec plugin and it should work fine now. Pat On Wed, Jul 16, 2008 at 12:07 PM, Paolo Dona <paolo.dona at gmail.com> wrote:> 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" <perg... at gmail.com> wrote: >> What about when you make it $ntotal? Is it the common first letter or >> the underscore? >> >> Pat >> >> On 7/16/08, Paolo Dona <paolo.d... at gmail.com> 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 >> > rspec-us... at rubyforge.org >> >http://rubyforge.org/mailman/listinfo/rspec-users >> >> _______________________________________________ >> rspec-users mailing list >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Paolo Dona
2008-Jul-20 09:46 UTC
[rspec-users] ''$'' placeholder naming can confuse your runner
Thank you for your quick fix man! What if I''m testing a standalone app instead of a rails one? (I bet I need to wait for the next rspec release right?) Paolo On Jul 19, 8:40?am, "Pat Maddox" <perg... at gmail.com> wrote:> Hey Paolo, > > I''ve fixed this. ?Update your rspec plugin and it should work fine now. > > Pat > > > > On Wed, Jul 16, 2008 at 12:07 PM, Paolo Dona <paolo.d... at gmail.com> wrote: > > 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" <perg... at gmail.com> wrote: > >> What about when you make it $ntotal? Is it the common first letter or > >> the underscore? > > >> Pat > > >> On 7/16/08, Paolo Dona <paolo.d... at gmail.com> 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 > >> > rspec-us... at rubyforge.org > >> >http://rubyforge.org/mailman/listinfo/rspec-users > > >> _______________________________________________ > >> rspec-users mailing list > >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > > rspec-users mailing list > > rspec-us... at rubyforge.org > >http://rubyforge.org/mailman/listinfo/rspec-users > > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky
2008-Jul-20 12:46 UTC
[rspec-users] ''$'' placeholder naming can confuse your runner
On Sun, Jul 20, 2008 at 4:46 AM, Paolo Dona <paolo.dona at gmail.com> wrote:> Thank you for your quick fix man! > What if I''m testing a standalone app instead of a rails one? (I bet I > need to wait for the next rspec release right?)git clone git://github.com/dchelimsky/rspec.git cd rspec rake gem rake install_gem TaDa! Cheers, David> > Paolo > > On Jul 19, 8:40 am, "Pat Maddox" <perg... at gmail.com> wrote: >> Hey Paolo, >> >> I''ve fixed this. Update your rspec plugin and it should work fine now. >> >> Pat >> >> >> >> On Wed, Jul 16, 2008 at 12:07 PM, Paolo Dona <paolo.d... at gmail.com> wrote: >> > 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" <perg... at gmail.com> wrote: >> >> What about when you make it $ntotal? Is it the common first letter or >> >> the underscore? >> >> >> Pat >> >> >> On 7/16/08, Paolo Dona <paolo.d... at gmail.com> 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 >> >> > rspec-us... at rubyforge.org >> >> >http://rubyforge.org/mailman/listinfo/rspec-users >> >> >> _______________________________________________ >> >> rspec-users mailing list >> >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ >> > rspec-users mailing list >> > rspec-us... at rubyforge.org >> >http://rubyforge.org/mailman/listinfo/rspec-users >> >> _______________________________________________ >> rspec-users mailing list >> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >