We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7384b commit 0ef19f0Copy full SHA for 0ef19f0
spec/support/unit/matchers/be_deprecated_in_favor_of.rb
@@ -14,7 +14,7 @@ def matches?(old_constant_name)
14
@old_constant_name = old_constant_name
15
@actual_output =
16
SuperDiff::UnitTests.capture_warnings do
17
- old_constant_name.constantize
+ Object.const_get(old_constant_name)
18
end
19
@actual_output.start_with?(expected_prefix)
20
spec/unit/deprecations_spec.rb
@@ -91,8 +91,8 @@
91
RSpec.describe old_constant_name, type: :unit do
92
it "maps to #{new_constant_name}" do
93
capture_warnings do
94
- expect(old_constant_name.constantize).to be(
95
- new_constant_name.constantize
+ expect(Object.const_get(old_constant_name)).to be(
+ Object.const_get(new_constant_name)
96
)
97
98
0 commit comments