Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ant.
  • Loading branch information...
commit f88febac9e6ea00e7fb7179d9e348079bd405f1e 1 parent f4f2a29
@myronmarston myronmarston authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/rspec/matchers/configuration_spec.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.