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

Commit 29019a8

Browse files
committed
Address ruby 2.2.0 warnings.
warning: possible reference to past scope - dbl
1 parent 11a268f commit 29019a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/rspec/core/example_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,13 +742,13 @@ def expect_pending_result(example)
742742
ex = nil
743743

744744
RSpec.describe do
745-
let(:dbl) { double }
745+
let(:the_dbl) { double }
746746

747747
ex = example do
748-
expect(dbl).to receive(:foo)
748+
expect(the_dbl).to receive(:foo)
749749
end
750750

751-
after { dbl.foo }
751+
after { the_dbl.foo }
752752
end.run
753753

754754
expect(ex).to pass

0 commit comments

Comments
 (0)