GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: The official `github` command line helper for simplifying your GitHub experience.
Homepage: http://github.com
Clone URL: git://github.com/defunkt/github-gem.git
Add spec to ensure GitHub.debug? gets set properly
kballard (author)
Mon May 26 17:41:00 -0700 2008
commit  0901ef29fae3393035ba3ff37729815dcac790f2
tree    590ef4670371f47a9703290c6c0bade036061f2a
parent  c23c1049bc9a692e177458adc00a22223d035c81
...
48
49
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
...
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
0
@@ -48,4 +48,18 @@ describe "GitHub.parse_options" do
0
     GitHub.parse_options(args).should == {}
0
     args.should == []
0
   end
0
+
0
+ it "should not set up debugging when --debug not passed" do
0
+ GitHub.stub!(:load)
0
+ GitHub.stub!(:invoke)
0
+ GitHub.activate(['default'])
0
+ GitHub.should_not be_debug
0
+ end
0
+
0
+ it "should set up debugging when passed --debug" do
0
+ GitHub.stub!(:load)
0
+ GitHub.stub!(:invoke)
0
+ GitHub.activate(['default', '--debug'])
0
+ GitHub.should be_debug
0
+ end
0
 end

Comments

    No one has commented yet.