Sha256: 1066ad509b4dfdd639106396e4014ec6dc9542aac534bd85e86a75d8c38ac5d1

Contents?: true

Size: 1.91 KB

Versions: 68

Compression:

Stored size: 1.91 KB

Contents

@wire
Feature: Wire Protocol with ERB
  In order to be allow Cucumber to touch my app in intimate places
  As a developer on server with multiple users
  I want to be able to configure which port my wire server runs on
  So that I can avoid port conflicts

  Background:
    Given a standard Cucumber project directory structure
    And a file named "features/wired.feature" with:
      """
      Feature: High strung
        Scenario: Wired
          Given we're all wired

      """

  Scenario: ERB is used in the wire file which references an environment variable that is not set
      Given a file named "features/step_definitions/server.wire" with:
        """
        host: localhost
        port: <%= ENV['PORT'] || 12345 %>
        """
      And there is a wire server running on port 12345 which understands the following protocol:
        | request                                              | response       |
        | ["step_matches",{"name_to_match":"we're all wired"}] | ["success",[]] |
      When I run cucumber --dry-run --no-snippets -f progress
      And it should pass with
        """
        U

        1 scenario (1 undefined)
        1 step (1 undefined)

        """


  Scenario: ERB is used in the wire file which references an environment variable
      Given I have environment variable PORT set to "16816"
      And a file named "features/step_definitions/server.wire" with:
        """
        host: localhost
        port: <%= ENV['PORT'] || 12345 %>
        """
      And there is a wire server running on port 16816 which understands the following protocol:
        | request                                              | response       |
        | ["step_matches",{"name_to_match":"we're all wired"}] | ["success",[]] |
      When I run cucumber --dry-run --no-snippets -f progress
      And it should pass with
        """
        U

        1 scenario (1 undefined)
        1 step (1 undefined)

        """

Version data entries

68 entries across 66 versions & 9 rubygems

Version Path
cucumber-1.3.20 legacy_features/wire_protocol_erb.feature
cucumber-1.3.19 legacy_features/wire_protocol_erb.feature
cucumber-1.3.18 legacy_features/wire_protocol_erb.feature
cucumber-1.3.17 legacy_features/wire_protocol_erb.feature
cucumber-1.3.16 legacy_features/wire_protocol_erb.feature
cucumber-1.3.15 legacy_features/wire_protocol_erb.feature
cucumber-1.3.14 legacy_features/wire_protocol_erb.feature
cucumber-1.3.13 legacy_features/wire_protocol_erb.feature
cucumber-1.3.12 legacy_features/wire_protocol_erb.feature
cucumber-1.3.11 legacy_features/wire_protocol_erb.feature
cucumber-1.3.10 legacy_features/wire_protocol_erb.feature
cucumber-1.3.9 legacy_features/wire_protocol_erb.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/legacy_features/wire_protocol_erb.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/legacy_features/wire_protocol_erb.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/wire_protocol_erb.feature
cucumber-1.3.8 legacy_features/wire_protocol_erb.feature
cucumber-1.3.7 legacy_features/wire_protocol_erb.feature
cucumber-1.3.6 legacy_features/wire_protocol_erb.feature
cucumber-1.3.5 legacy_features/wire_protocol_erb.feature
cucumber-1.3.4 legacy_features/wire_protocol_erb.feature