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 3:59 PM, aidy lewis [email protected]
wrote:
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
On Tue, Sep 30, 2008 at 8:59 AM, aidy lewis [email protected]
wrote:
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
Please file bug reports at http://rspec.lighthouseapp.com.
Cheers,
David
Aslak
2008/9/30 aslak hellesoy [email protected]:
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