Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') | ||
require File.dirname(__FILE__) + '/command_helper' | ||
|
||
describe "github issues" do | ||
include CommandHelper | ||
|
||
specify "issues without args should show help" do | ||
running :issues do | ||
setup_url_for | ||
stdout.should == <<-EOS.gsub(/^ /, '') | ||
You have to provide a command : | ||
open - shows open tickets for this project | ||
closed - shows closed tickets for this project | ||
--user=<username> - show issues from <username>'s repository | ||
--after=<date> - only show issues updated after <date> | ||
EOS | ||
end | ||
end | ||
end |