Sha256: 1bd68792c03651f617471296096e978ffd5e6e9bd4cfaebff491891f2644d2f3
Contents?: true
Size: 1.86 KB
Versions: 9
Compression:
Stored size: 1.86 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 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` Then 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` Then it should pass with: """ U 1 scenario (1 undefined) 1 step (1 undefined) """
Version data entries
9 entries across 9 versions & 1 rubygems