Skip to content

Wrong step definition created when having "(" #1291

Closed
@aslakhellesoy

Description

@aslakhellesoy

From @christianbaumann on April 19, 2018 9:43

Summary

I have a step definition which contains "(" and ")", eg.

And the room information (room code and availability) is correct

Expected Behavior

When I run cucumber and have no step definition defined, I would expect a matching step definition to be defined

And(/^the room information (room code and availability) is correct$/) do

Current Behavior

Instead, following step definition is created:

And("the room information (room code and availability) is correct") do

Your Environment

  • Ruby: ruby 2.3.3p222 (2016-11-21 revision 56859) [x64-mingw32]
  • Cucumber:
    cucumber (3.1.0)
    cucumber-core (3.1.0)
    cucumber-expressions (5.0.17, 5.0.15)
    cucumber-tag_expressions (1.1.1)
    cucumber-wire (0.0.1)
  • Operating System and version: Windows 8.1 Enterprise

Copied from original issue: cucumber/common#364

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions