[cucumber tests] make the 'print version' tests less brittle
This commit is contained in:
@@ -33,3 +33,7 @@ Then /^it should give no output$/ do
|
|||||||
output = ps.stdout + ps.stderr
|
output = ps.stdout + ps.stderr
|
||||||
output.should == ""
|
output.should == ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Then(/^it should pass with version$/) do
|
||||||
|
only_processes.last.stdout.chomp.should == tools_version
|
||||||
|
end
|
||||||
|
@@ -1,19 +1,11 @@
|
|||||||
Feature: thin_check
|
Feature: thin_check
|
||||||
Scenario: print version (-V flag)
|
Scenario: print version (-V flag)
|
||||||
When I run `thin_check -V`
|
When I run `thin_check -V`
|
||||||
Then it should pass with:
|
Then it should pass with version
|
||||||
|
|
||||||
"""
|
|
||||||
0.1.5
|
|
||||||
"""
|
|
||||||
|
|
||||||
Scenario: print version (--version flag)
|
Scenario: print version (--version flag)
|
||||||
When I run `thin_check --version`
|
When I run `thin_check --version`
|
||||||
Then it should pass with:
|
Then it should pass with version
|
||||||
|
|
||||||
"""
|
|
||||||
0.1.5
|
|
||||||
"""
|
|
||||||
|
|
||||||
Scenario: print help
|
Scenario: print help
|
||||||
When I run `thin_check --help`
|
When I run `thin_check --help`
|
||||||
|
@@ -1,19 +1,11 @@
|
|||||||
Feature: thin_rmap
|
Feature: thin_rmap
|
||||||
Scenario: print version (-V flag)
|
Scenario: print version (-V flag)
|
||||||
When I run `thin_rmap -V`
|
When I run `thin_rmap -V`
|
||||||
Then it should pass with:
|
Then it should pass with version
|
||||||
|
|
||||||
"""
|
|
||||||
0.1.5
|
|
||||||
"""
|
|
||||||
|
|
||||||
Scenario: print version (--version flag)
|
Scenario: print version (--version flag)
|
||||||
When I run `thin_rmap --version`
|
When I run `thin_rmap --version`
|
||||||
Then it should pass with:
|
Then it should pass with version
|
||||||
|
|
||||||
"""
|
|
||||||
0.1.5
|
|
||||||
"""
|
|
||||||
|
|
||||||
Scenario: print help
|
Scenario: print help
|
||||||
When I run `thin_rmap --help`
|
When I run `thin_rmap --help`
|
||||||
|
Reference in New Issue
Block a user