Bug in step definitions fail due to optional phrase

7 views
Skip to first unread message

Doug Puchalski

unread,
Apr 1, 2014, 8:45:31 PM4/1/14
to ruby-...@googlegroups.com
I'm defining a step like:

step "The :model should be (a|an) :bool"

The following fails:

The post should be available

The "a" from available is getting absorbed as the optional article (a|an) even though a space should precede the :bool, and :bool gets "vailable".


Reply all
Reply to author
Forward
0 new messages