-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stupid spec to test help options
- Loading branch information
1 parent
fb7b2d0
commit 90f3814
Showing
2 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,16 @@ | ||
$:.unshift File.dirname(__FILE__) | ||
|
||
require 'helper' | ||
require 'lib/main' | ||
|
||
describe Yikes do | ||
it "should display help options" do | ||
output = `ruby #{TestDir}/../lib/main.rb --help` | ||
|
||
# This test is stupid, but is a smoke test | ||
output.index("Usage:").should == 0 | ||
output.index("options:").should >= 0 | ||
output.index("library").should >= 0 | ||
output.index("target").should >= 0 | ||
end | ||
end |