This is a problem that I'm working on with pickle.
The reason why the code constructs such an expression is to stop ambiguous step collisions for the should be <predicate> steps.
Until I come up with a general solution, you can try the following:
You can try replacing the #{capture_predicate} with something like (\w[\w ]+\w), but that is likely to cause ambiguous step problems.
If you do have this problem, there are two other things to try.
In Pickle.configure, try restricting the predicates to those you need:
Pickle.configure do |config|
config.predicates = %w(small? large? green?)
end
Or, if this is not appealing, replace #{capture_predicate} with "(\w[\w ]+\w)" (adding quotes around the above one)
This means you;ll have to rewrite these steps with quotes. ie.
Then the 2nd user should be activated
becomes
Then the 2nd user should be "activated"
The quotes should remove any ambiguous step clashes.
Let me know how you get on.
Cheers,
Ian
If it does you have two option
> --
> You received this message because you are subscribed to the Google Groups "pickle" group.
> To post to this group, send email to pickle-...@googlegroups.com.
> To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en.
>