Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 435f786

Browse files
committed
fixup! Bring stubbing back
1 parent 6b4612b commit 435f786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/rspec/support/recursive_const_methods_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def to_str
3636
end
3737

3838
it 'does not blow up on buggy classes that raise weird errors on `to_str`' do
39+
allow(Foo::Bar).to receive(:to_str).and_raise("boom!")
3940
const, _ = recursive_const_defined?('::RSpec::Support::Foo::Bar::VAL')
4041

4142
expect(const).to eq(10)

0 commit comments

Comments
 (0)