Hi, We are receiving an ArityMismatchError when we feel we have a valid RegEx error C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in `/verify the email with the subject of ''[\w\x2E\-\s]*''/'' create_staff_user.feature:15:in `And verify the email with the subject of ''xxx.xx.xxx.xxx.com - Your Account Details'' scenario step And verify the email with the subject of ''xxx.xx.xxx.xxx.com - Your Account Details'' implemented step Then /verify the email with the subject of ''[\w\x2E\-\s]*''/ do |email_subject| verify_an_email_has_been_sent(email_subject) end Aidy
On Tue, Sep 30, 2008 at 8:59 AM, aidy lewis <aidy.lewis at googlemail.com> wrote:> Hi, > > We are receiving an ArityMismatchError when we feel we have a valid RegEx > > error > C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in > `/verify the email with the subject of ''[\w\x2E\-\s]*''/'' > create_staff_user.feature:15:in `And verify the email with the > subject of ''xxx.xx.xxx.xxx.com - Your Account Details'' > > scenario step > And verify the email with the subject of ''xxx.xx.xxx.xxx.com - Your > Account Details'' > > implemented step > Then /verify the email with the subject of ''[\w\x2E\-\s]*''/ do |email_subject| > verify_an_email_has_been_sent(email_subject) > endPlease file bug reports at http://rspec.lighthouseapp.com. Cheers, David> > > Aidy > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Tue, Sep 30, 2008 at 3:59 PM, aidy lewis <aidy.lewis at googlemail.com> wrote:> Hi, > > We are receiving an ArityMismatchError when we feel we have a valid RegEx > > error > C:/svnprojects/olc_stories/lib/framework/common_steps/verification_steps.rb:48:in > `/verify the email with the subject of ''[\w\x2E\-\s]*''/'' > create_staff_user.feature:15:in `And verify the email with the > subject of ''xxx.xx.xxx.xxx.com - Your Account Details'' > > scenario step > And verify the email with the subject of ''xxx.xx.xxx.xxx.com - Your > Account Details'' > > implemented step > Then /verify the email with the subject of ''[\w\x2E\-\s]*''/ do |email_subject| > verify_an_email_has_been_sent(email_subject) > end >There are no groups in your regexp. You probably want this: /verify the email with the subject of ''([\w\x2E\-\s]*)''/ Aslak> > Aidy > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
Aslak 2008/9/30 aslak hellesoy <aslak.hellesoy at gmail.com>:> > There are no groups in your regexp. You probably want this: > > /verify the email with the subject of ''([\w\x2E\-\s]*)''/ > > Aslak >Apologies. Thank You. Aidy