public
Description: Remote multi-server automation tool. This repository is no longer being actively maintained. Please ask on the mailing list to find someone who has a well-maintained fork. Thanks!
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Improved test coverage for debug cli option
Ryan McGeary (author)
Sat May 10 16:07:44 -0700 2008
commit  192d8e41e47841f6037fef73929b1f2cbfc3e7a4
tree    ffd74a0847cb41e7b5ea3f36916037c8c50d7226
parent  1114c00039b55b65b8a527c3ddbcb861d742a99a
...
24
25
26
 
 
 
 
 
 
27
28
29
...
223
224
225
226
227
 
...
24
25
26
27
28
29
30
31
32
33
34
35
...
229
230
231
 
232
233
0
@@ -24,6 +24,12 @@ class CLIOptionsTest < Test::Unit::TestCase
0
     assert_raises(ExitException) { @cli.parse_options! }
0
   end
0
   
0
+  def test_parse_options_with_d_should_set_debug_option
0
+    @cli.args << "-d"
0
+    @cli.parse_options!
0
+    assert @cli.options[:debug]
0
+  end
0
+
0
   def test_parse_options_with_e_should_set_explain_option
0
     @cli.args << "-e" << "sample"
0
     @cli.parse_options!
0
@@ -223,4 +229,4 @@ class CLIOptionsTest < Test::Unit::TestCase
0
     MockCLI.expects(:new).with(%w(a b c)).returns(cli)
0
     assert_equal cli, MockCLI.parse(%w(a b c))
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments