Sha256: aae4420a5ede13404235bb69ac4e5b3fb255e18122c61c99684be558ee4380de

Contents?: true

Size: 983 Bytes

Versions: 9

Compression:

Stored size: 983 Bytes

Contents

# For complete Aruba step listing see:
# lib/aruba/cucumber.rb
# or https://github.com/aslakhellesoy/aruba/blob/master/lib/aruba/cucumber.rb
Feature: Executing commands
  In order to test a running local system
  As an administrator
  I want to use Aruba steps to run commands and test output

  Background:
    Given that "cuken/cmd" has been required

  Scenario: Check Stdout
    When I run `echo 'i like cheese'`
    Then the stdout from "echo 'i like cheese'" should contain "i like cheese"

  Scenario: Check Stderr
    When I run `some_error`
    Then the stderr from "some_error" should contain "No such file or directory - some_error"

  Scenario: Check Stdout for multiple lines
    When I run `echo 'one\none\none\n'`
    Then the output should contain:
    """
    one
    one
    one
    """

  Scenario: Check exit code
    When I run `true`
    Then the exit status should be 0

  Scenario: Check exit code
    When I run `false`
    Then the exit status should be 1

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cuken-0.1.13 features/command_examples/commands.feature
cuken-0.1.12 features/command_examples/commands.feature
cuken-0.1.11 features/command_examples/commands.feature
cuken-0.1.10 features/command_examples/commands.feature
cuken-0.1.9 features/command_examples/commands.feature
cuken-0.1.8 features/command_examples/commands.feature
cuken-0.1.7 features/command_examples/commands.feature
cuken-0.1.4 features/command_examples/commands.feature
cuken-0.1.2 features/commands.feature