On Tue, Sep 30, 2008 at 3:59 PM, aidy lewis <[EMAIL PROTECTED]> 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@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users