Sha256: 83ffee1d2f2e3f76851b7889456439550190f62cf315d2001804791618c66e41

Contents?: true

Size: 965 Bytes

Versions: 8

Compression:

Stored size: 965 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'" contains "i like cheese"

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

  Scenario: Check Stdout for multiple lines
    When I run `echo 'one\none\none\n'`
    Then the output contains:
    """
    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

8 entries across 8 versions & 1 rubygems

Version Path
cuken-0.1.22 features/command_examples/commands.feature
cuken-0.1.21 features/command_examples/commands.feature
cuken-0.1.20 features/command_examples/commands.feature
cuken-0.1.19 features/command_examples/commands.feature
cuken-0.1.18 features/command_examples/commands.feature
cuken-0.1.17 features/command_examples/commands.feature
cuken-0.1.16 features/command_examples/commands.feature
cuken-0.1.15 features/command_examples/commands.feature