Skip to content

Aruba Command step for a "match" does not escape () charactersΒ #960

@luke-hill

Description

@luke-hill

πŸ‘“ What did you see?

The step mentioned below is not escaping literal () characters

βœ… What did you expect to see?

The step mentioned below should escape literal () characters

πŸ“¦ Which tool/library version are you using?

Then(/^it should (pass|fail) (?:with regexp?|matching):$/) do |pass_fail, expected|
  last_command_started.stop

  if pass_fail == 'pass'
    expect(last_command_stopped).to be_successfully_executed
  else
    expect(last_command_stopped).not_to be_successfully_executed
  end

  expect(last_command_stopped).to have_output an_output_string_matching(expected)
end

πŸ”¬ How could we reproduce it?

If you run the following cucumber step using aruba, it fails when it should pass. The opening left bracket is tripping it up

    And it should fail matching:
      """
      Feature: Telegraphy

        Scenario: Wired
          Given we're all wired
            Timed out calling wire server with message 'invoke' (Timeout::Error
      """

πŸ“š Any additional context?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions