Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion [Rails] step with several optional params
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Me  
View profile  
 More options Feb 27 2011, 9:34 pm
From: Me <chabg...@gmail.com>
Date: Sun, 27 Feb 2011 18:34:49 -0800 (PST)
Local: Sun, Feb 27 2011 9:34 pm
Subject: Re: [Cucumber:7269] [Rails] step with several optional params

Oh, I did , I was curious if anything jumped out to anyone.  The 1st one
works, the second one does not.

On Sunday, February 27, 2011 7:36:28 PM UTC-6, Craig Demyanovich wrote:

> Just run it and see if it works. :-)

> Alternatively, you could separate this into 3 steps like so:

> Then 'I see my dashboard' do
> ...
> end

> Then 'I see my dashboard with $count works' do |count|
> ...
> end

> Then 'I see my dashboard with $works_count works, $open_submissions_count
> open submissions' do |works_count, open_submissions_count|
> ...
> end

> Separate steps, with regular expressions or strings, can be much simpler
> than one step with lots of optional captures in its regex.

> Also see this post from Thoughbot<http://robots.thoughtbot.com/post/428389401/write-fewer-regular-expre...>
> .

> Regards,
> Craig


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.