Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add --debug option

  • Loading branch information...
commit 57aae9af0e660edcf19418a6539712e3cfa6de10 1 parent 1661704
David Chelimsky dchelimsky authored
4 lib/rspec/core/command_line_options.rb
View
@@ -51,6 +51,10 @@ def parse
options[:full_backtrace] = true
end
+ opts.on('-d', '--debug', 'Enable debugging') do |o|
+ options[:debug] = true
+ end
+
opts.on_tail('-h', '--help', "You're looking at it.") do
puts opts
exit
7 spec/rspec/core/command_line_options_spec.rb
View
@@ -121,5 +121,12 @@ def options_from_args(*args)
end
end
+ describe "--debug (-d)" do
+ it "sets debug on config" do
+ options_from_args("--debug").should include(:debug => true)
+ options_from_args("-d").should include(:debug => true)
+ end
+ end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.