[rspec-users] Cucumber::ArityMismatchError

aslak hellesoy aslak.hellesoy at gmail.com
Tue Sep 30 10:08:40 EDT 2008


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
>


More information about the rspec-users mailing list