Skip to content

Commit a7d3728

Browse files
committed
[Actor] - Suppress deprecation warnings when running the test suite.
We don't need those warnings while running the test suite.
1 parent 2336b6f commit a7d3728

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/concurrent/actor_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ module Concurrent
66

77
describe Actor do
88

9+
before do
10+
# suppress deprecation warnings.
11+
Concurrent::Actor.any_instance.stub(:warn)
12+
Concurrent::Actor.stub(:warn)
13+
end
14+
915
let(:actor_class) do
1016
Class.new(Actor) do
1117
attr_reader :last_message

0 commit comments

Comments
 (0)