Some trivial cucumber tests
This commit is contained in:
parent
43d5d8d2a2
commit
81d4e5523f
1
.ruby-version
Normal file
1
.ruby-version
Normal file
@ -0,0 +1 @@
|
||||
1.9.3-p392
|
6
Gemfile
Normal file
6
Gemfile
Normal 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
30
Gemfile.lock
Normal 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)
|
4
features/support/aruba.rb
Normal file
4
features/support/aruba.rb
Normal file
@ -0,0 +1,4 @@
|
||||
require 'aruba/cucumber'
|
||||
|
||||
STDERR.puts "pwd = #{Dir::pwd}"
|
||||
ENV['PATH'] = "#{Dir::pwd}:#{ENV['PATH']}"
|
40
features/thin_check.feature
Normal file
40
features/thin_check.feature
Normal 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}
|
||||
"""
|
Loading…
Reference in New Issue
Block a user