diff --git a/spec/commands/command_issues_spec.rb b/spec/commands/command_issues_spec.rb new file mode 100644 index 00000000..6e1f9c6a --- /dev/null +++ b/spec/commands/command_issues_spec.rb @@ -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= - show issues from 's repository + --after= - only show issues updated after + + EOS + end + end +end \ No newline at end of file