Skip to content
This repository
Browse code

Changelog plus additional examples for previous commit

- #450.
  • Loading branch information...
commit b57fb0072c709c346902ccdf06ca066bfb674b32 1 parent 11024b8
David Chelimsky dchelimsky authored
1  Changelog.md
Source Rendered
@@ -20,6 +20,7 @@ As of 2.7.0, you must explicity `require "rspec/autorun"` unless you use the
20 20 Sławiński)
21 21 * Clear formatters when resetting config (John Bintz)
22 22 * Add xspecify and xexample as temp-pending methods (David Chelimsky)
  23 + * Add --no-drb option (Iain Hecker)
23 24
24 25 * Bug fixes
25 26 * Include Rake::DSL to remove deprecation warnings in Rake > 0.8.7 (Pivotal
15 spec/rspec/core/configuration_options_spec.rb
@@ -78,6 +78,14 @@ def parse_options(*args)
78 78 it "sets :color_enabled => false" do
79 79 parse_options('--no-color').should include(:color_enabled => false)
80 80 end
  81 +
  82 + it "overrides previous :color_enabled => true" do
  83 + parse_options('--color', '--no-color').should include(:color_enabled => false)
  84 + end
  85 +
  86 + it "gets overriden by a subsequent :color_enabled => true" do
  87 + parse_options('--no-color', '--color').should include(:color_enabled => true)
  88 + end
81 89 end
82 90
83 91 describe "-I" do
@@ -207,8 +215,15 @@ def parse_options(*args)
207 215 describe "--no-drb" do
208 216 it "disables drb" do
209 217 parse_options("--no-drb").should include(:drb => false)
  218 + end
  219 +
  220 + it "overrides a previous drb => true" do
210 221 parse_options("--drb", "--no-drb").should include(:drb => false)
211 222 end
  223 +
  224 + it "gets overriden by a subsquent drb => true" do
  225 + parse_options("--no-drb", "--drb").should include(:drb => true)
  226 + end
212 227 end
213 228
214 229

0 comments on commit b57fb00

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