Some trivial cucumber tests

This commit is contained in:
Joe Thornber 2013-03-20 19:44:09 +00:00
parent 43d5d8d2a2
commit 81d4e5523f
5 changed files with 81 additions and 0 deletions

1
.ruby-version Normal file
View File

@ -0,0 +1 @@
1.9.3-p392

6
Gemfile Normal file
View File

@ -0,0 +1,6 @@
source 'https://rubygems.org'
group :test do
gem 'cucumber', '1.2.3'
gem 'aruba', '0.5.1'
end

30
Gemfile.lock Normal file
View File

@ -0,0 +1,30 @@
GEM
remote: https://rubygems.org/
specs:
aruba (0.5.1)
childprocess (~> 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
builder (3.2.0)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
cucumber (1.2.3)
builder (>= 2.1.2)
diff-lcs (>= 1.1.3)
gherkin (~> 2.11.6)
multi_json (~> 1.3)
diff-lcs (1.2.1)
ffi (1.4.0)
gherkin (2.11.6)
json (>= 1.7.6)
json (1.7.7)
multi_json (1.7.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
PLATFORMS
ruby
DEPENDENCIES
aruba (= 0.5.1)
cucumber (= 1.2.3)

View File

@ -0,0 +1,4 @@
require 'aruba/cucumber'
STDERR.puts "pwd = #{Dir::pwd}"
ENV['PATH'] = "#{Dir::pwd}:#{ENV['PATH']}"

View File

@ -0,0 +1,40 @@
Feature: thin_check
Scenario: print version (-V flag)
When I run `thin_check -V`
Then it should pass with:
"""
0.1.5
"""
Scenario: print version (--version flag)
When I run `thin_check --version`
Then it should pass with:
"""
0.1.5
"""
Scenario: print help
When I run `thin_check --help`
Then it should pass with:
"""
Usage: thin_check [options] {device|file}
Options:
{-q|--quiet}
{-h|--help}
{-V|--version}
"""
Scenario: print help
When I run `thin_check -h`
Then it should pass with:
"""
Usage: thin_check [options] {device|file}
Options:
{-q|--quiet}
{-h|--help}
{-V|--version}
"""