I know that cucumber does not allow ambiguous steps to stop duplication
of specs, but I ran into the problem of only being a ble to use the
following step name once in the whole project
Then /I should see "(.*)" do |text|
What can I do to get round this?
--
Posted via http://www.ruby-forum.com/.
On Sun, Sep 14, 2008 at 7:39 AM, Damian Jones <[EMAIL PROTECTED]> wrote:
> I know that cucumber does not allow ambiguous steps to stop duplication
> of specs,
It's not to stop duplication of specs, it's to avoid the possibility
that you could write this:
Then /I should see "(.*)"
Then /I shou
Hello,
Can you give an example of how you would want the step body of:
> Then /I should see "(.*)"/ do |text|
to be different.
I would aim for this step to be reusable. When I have conflicts I take
the approach of adding context to such a step.
> Then /I should see "(.*)" in the page/ do |tex
On Sun, Sep 14, 2008 at 9:13 AM, Joseph Wilk <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Can you give an example of how you would want the step body of:
>
>> Then /I should see "(.*)"/ do |text|
>
> to be different.
>
> I would aim for this step to be reusable. When I have conflicts I take
> the approa
> Then /I should see "(.*)"
> Then /I should see "(.*)" in the list of authors/
>
> Both of these would respond to:
>
> Then I should see Aslak in the list of authors
If you change the first one to
Then /I should see "(.*?)"$/
then it should no longer match that string. Tightening up the reg
On Sep 14, 2008, at 9:39 AM, "Pat Maddox" <[EMAIL PROTECTED]> wrote:
Then /I should see "(.*)"
Then /I should see "(.*)" in the list of authors/
Both of these would respond to:
Then I should see Aslak in the list of authors
If you change the first one to
Then /I should see "(.*?)"$/
then i