Sha256: 25a076c953cb294bb75ecf69712fc2b2b53a9d9e3bfc71b0316e531fb3d44216

Contents?: true

Size: 1.1 KB

Versions: 21

Compression:

Stored size: 1.1 KB

Contents

Feature: Set environment variable via "cucumber"-step

  It is quite handy to modify the environment of a process. To make this
  possible, `aruba` provides several steps. One of these is
  `I set the environment variables to:`-step. Using this step sets the values of a
  non-existing variables and overwrites an existing values. Each variable name
  and each value is converted to a string. Otherwise `ruby` would complain
  about an invalid argument.

  Background:
    Given I use the fixture "cli-app"

  Scenario: Set environment variable by using a step
    Given an executable named "bin/cli" with:
    """
    #!/bin/bash

    echo $LONG_LONG_VARIABLE
    """
    And a file named "features/home_variable.feature" with:
    """
    Feature: Environment Variable
      Scenario: Run command
        Given I set the environment variables to:
          | variable           | value      |
          | LONG_LONG_VARIABLE | long_value |
        When I run `cli`
        Then the output should contain:
        \"\"\"
        long_value
        \"\"\"
    """
    When I run `cucumber`
    Then the features should all pass

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
aruba-0.13.0 features/steps/environment/set_environment_variable.feature
aruba-0.12.0 features/steps/environment/set_environment_variable.feature
aruba-0.11.2 features/steps/environment/set_environment_variable.feature
aruba-0.11.1 features/steps/environment/set_environment_variable.feature
aruba-0.11.0.pre4 features/steps/environment/set_environment_variable.feature
aruba-0.11.0.pre3 features/steps/environment/set_environment_variable.feature
aruba-0.11.0.pre2 features/steps/environment/set_environment_variable.feature
aruba-0.11.0.pre features/steps/environment/set_environment_variable.feature
aruba-0.10.2 features/steps/environment/set_environment_variable.feature
aruba-0.10.1 features/steps/environment/set_environment_variable.feature
aruba-0.10.0 features/steps/environment/set_environment_variable.feature
aruba-0.10.0.pre2 features/steps/environment/set_environment_variable.feature
aruba-0.10.0.pre features/steps/environment/set_environment_variable.feature
aruba-0.9.0 features/steps/environment/set_environment_variable.feature
aruba-0.9.0.pre2 features/steps/environment/set_environment_variable.feature
aruba-0.9.0.pre features/steps/environment/set_environment_variable.feature
aruba-0.8.1 features/steps/environment/set_environment_variable.feature
aruba-0.8.0 features/steps/environment/set_environment_variable.feature
aruba-0.8.0.pre3 features/steps/environment/set_environment_variable.feature
aruba-0.8.0.pre2 features/steps/environment/set_environment_variable.feature