Displaying 1 result from an estimated 1 matches for "parenthesis_error_story".
2007 Nov 13
3
Story problem if parenthesis used in Given, When, Then or And
...hile evaluating nil.perform
/cygdrive/c/development/sandbox/prototypes/proj/config/../vendor/plugins/rspec/lib/spec/story/world.rb:
60:in `store_and_call''
/cygdrive/c/development/sandbox/prototypes/proj/config/../vendor/plugins/rspec/lib/spec/story/world.rb:
92:in `Given''
stories/parenthesis_error_story.rb:10
Looks like the problem is in the Step#matches? method
since
"abc (re) def".match /abc (re) def/
returns nil
however
"abc (re) def".match /abc \(re\) def/
returns the match
The Step#assign_expression method when modifed as follows
def assign_expression(n...