Permalink
Browse files

Use `hide_const` at a place where we really just want to hide a const…

…ant.
  • Loading branch information...
myronmarston committed Oct 21, 2012
1 parent f4f2a29 commit f88febac9e6ea00e7fb7179d9e348079bd405f1e
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/rspec/matchers/configuration_spec.rb
@@ -31,7 +31,7 @@ module Matchers
end
it "defaults to a null formatter when rspec-core is not loaded" do
- stub_const("RSpec::Core", nil) # so the formatter module is not loaded
+ hide_const("RSpec::Core::BacktraceFormatter")
expect(formatted_backtrace).to eq(original_backtrace)
end

0 comments on commit f88feba

Please sign in to comment.