From d3809f05fc0c7793955a29f9fc514dad555a1e3f Mon Sep 17 00:00:00 2001 From: Dr Nic Williams Date: Fri, 6 Nov 2009 09:31:20 +1000 Subject: [PATCH] spec for default :issues behaviour --- spec/commands/command_issues_spec.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 spec/commands/command_issues_spec.rb 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