Skip to content
Browse files

Changelog plus additional examples for previous commit

- #450.
  • Loading branch information...
1 parent 11024b8 commit b57fb0072c709c346902ccdf06ca066bfb674b32 @dchelimsky dchelimsky committed Aug 28, 2011
Showing with 16 additions and 0 deletions.
  1. +1 −0 Changelog.md
  2. +15 −0 spec/rspec/core/configuration_options_spec.rb
View
1 Changelog.md
@@ -20,6 +20,7 @@ As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
Sławiński)
* Clear formatters when resetting config (John Bintz)
* Add xspecify and xexample as temp-pending methods (David Chelimsky)
+ * Add --no-drb option (Iain Hecker)
* Bug fixes
* Include Rake::DSL to remove deprecation warnings in Rake > 0.8.7 (Pivotal
View
15 spec/rspec/core/configuration_options_spec.rb
@@ -78,6 +78,14 @@ def parse_options(*args)
it "sets :color_enabled => false" do
parse_options('--no-color').should include(:color_enabled => false)
end
+
+ it "overrides previous :color_enabled => true" do
+ parse_options('--color', '--no-color').should include(:color_enabled => false)
+ end
+
+ it "gets overriden by a subsequent :color_enabled => true" do
+ parse_options('--no-color', '--color').should include(:color_enabled => true)
+ end
end
describe "-I" do
@@ -207,8 +215,15 @@ def parse_options(*args)
describe "--no-drb" do
it "disables drb" do
parse_options("--no-drb").should include(:drb => false)
+ end
+
+ it "overrides a previous drb => true" do
parse_options("--drb", "--no-drb").should include(:drb => false)
end
+
+ it "gets overriden by a subsquent drb => true" do
+ parse_options("--no-drb", "--drb").should include(:drb => true)
+ end
end

0 comments on commit b57fb00

Please sign in to comment.
Something went wrong with that request. Please try again.