Skip to content

Commit

Permalink
spec for default :issues behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Nov 5, 2009
1 parent 79ecfc5 commit d3809f0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 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.