Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #84 from josephholsten/update-aruba

Update aruba
  • Loading branch information...
commit f900e9311c8a7d4dcc67fe8ebf0e47395e27eff7 2 parents a4d8483 + 868dfe8
@hedgehog hedgehog authored
View
12 features/commands.feature
@@ -11,15 +11,15 @@ Feature: Executing commands
I want to use Aruba steps to run commands and test output
Scenario: Check Stdout
- When I run "echo 'i like cheese'"
+ 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"
+ When I run `sh some_error`
+ Then the stderr should contain "sh: some_error: No such file or directory"
Scenario: Check Stdout for multiple lines
- When I run "echo 'one\none\none\n'"
+ When I run `echo 'one\none\none\n'`
Then the output should contain:
"""
one
@@ -28,10 +28,10 @@ Feature: Executing commands
"""
Scenario: Check exit code
- When I run "true"
+ When I run `true`
Then the exit status should be 0
Scenario: Check exit code
- When I run "false"
+ When I run `false`
Then the exit status should be 1
View
34 features/files.feature
@@ -12,7 +12,7 @@ Feature: Examining files
@steps
Scenario: File exists
- Given the empty file "foo.file"
+ Given an empty file named "foo.file"
Then the file "foo.file" exists
@steps
@@ -21,18 +21,18 @@ Feature: Examining files
@steps
Scenario: Atime
- Given the empty file "foo.file"
- And we record the a/mtime of "foo.file"
- And I run "sleep 1"
- And I run "touch -a foo.file"
+ Given an empty file named "foo.file"
+ And we record the a-mtime of "foo.file"
+ And I run `sleep 1`
+ And I run `touch -a foo.file`
Then the atime of "foo.file" changes
@steps
Scenario: Mtime
Given an empty file named "foo.file"
- And we record the a/mtime of "foo.file"
- And I run "sleep 1"
- And I run "touch -m foo.file"
+ And we record the a-mtime of "foo.file"
+ And I run `sleep 1`
+ And I run `touch -m foo.file`
Then the mtime of "foo.file" changes
@steps
@@ -60,14 +60,14 @@ Feature: Examining files
"""
@steps
Scenario: File modes
- When I run "touch filemode.file"
- And I run "chmod 644 filemode.file"
- Then the file "filemode.file" has mode "644"
- And the file "filemode.file" has mode "0644"
+ When I run `touch filemode.file`
+ And I run `chmod 644 filemode.file`
+ Then the file "filemode.file" has decimal mode "644"
+ And the file "filemode.file" has decimal mode "0644"
@steps
Scenario: Directory exists
- When I run "mkdir -p dirtest"
+ When I run `mkdir -p dirtest`
Then the directory "dirtest" exists
@steps
@@ -76,9 +76,9 @@ Feature: Examining files
@steps
Scenario: Directory mode
- When I run "mkdir -p dirtest"
- And I run "chmod 755 dirtest"
- Then the directory "dirtest" has mode "755"
- And the directory "dirtest" has mode "0755"
+ When I run `mkdir -p dirtest`
+ And I run `chmod 755 dirtest`
+ Then the directory "dirtest" has decimal mode "755"
+ And the directory "dirtest" has decimal mode "0755"
View
28 features/ssh.feature
@@ -1,28 +0,0 @@
-# For complete reusable step listings see:
-# lib/aruba/cucumber.rb
-# https://github.com/aslakhellesoy/aruba/blob/master/lib/aruba/cucumber.rb
-# AND
-# lib/cuken/*.rb
-# https://github.com/hedgehog/cuken
-
-Feature: SSH steps
- In order to specify remote command execution
- As a developer using Cucumber
- I want to use Aruba and custom steps to describe SSH sessions
-
- Background:
- Given default ssh-forever options
- And I initialize password-less SSH access
-
- Scenario: Aruba steps for remote commands via password-less SSH access
- Given I successfully run "ssh cuken 'echo Supercalifragilisticexpialidocious;'"
- Then the output should contain "Supercalifragilisticexpialidocious"
-
- Scenario: Batch initialize password-less SSH access
- When I initialize password-less SSH access for:
- | user | hostname | name | port |
- | `whoami` | `hostname` | `echo cuken` | `echo 22` |
- | :default | localhost | `echo cuken` | 22 |
- | :default | :default | :default | :default |
- And I successfully run "ssh cuken 'echo Supercalifragilisticexpialidocious;'"
- Then the output should contain "Supercalifragilisticexpialidocious"
Please sign in to comment.
Something went wrong with that request. Please try again.