Skip to content
Browse files

spec for default :issues behaviour

  • Loading branch information...
1 parent 79ecfc5 commit d3809f05fc0c7793955a29f9fc514dad555a1e3f @drnic drnic committed Nov 6, 2009
Showing with 22 additions and 0 deletions.
  1. +22 −0 spec/commands/command_issues_spec.rb
View
22 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=<username> - show issues from <username>'s repository
+ --after=<date> - only show issues updated after <date>
+
+ EOS
+ end
+ end
+end

0 comments on commit d3809f0

Please sign in to comment.
Something went wrong with that request. Please try again.