Sha256: 2b86d7c92abd1327a3d9a976c9887b97f5dd21f006aff63153e7a75947d15e7e

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

Feature: Matching
  It can be asserted that a value matches another string or regex

  Scenario: Assorted positive and negative assertions.
    Given a file named "features/is_matching.feature" with:
      """

Feature: Assert value matchiness
  Scenario: String in response body matched against a regex
    When the response body is assigned:
      \"\"\"
      http://www.github.com?var=val
      \"\"\"
    Then the value of the response body is matching `/github/`
    And the value of the response body is matching `/git.*\?.*=/`
    And the value of the response body is not matching `/gh/`
    And the value of the response body is not matching `/^github/`

  Scenario: Regex in response body matched against a string
    When the response body is assigned:
      \"\"\"
      /(.+)\1/
      \"\"\"
    Then the value of the response body is matching `blahblah`
    And the value of the response body is matching `boo`
    And the value of the response body is not matching `blah blah`
    And the value of the response body is not matching `blah`

      """
    When I run `cucumber --strict features/is_matching.feature`
    Then the output should contain:
      """
      2 passed
      """
    And it should pass

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brine-dsl-0.5.0 features/assertions/is_matching.feature