diff --git a/spec/rspec/mocks/any_instance_spec.rb b/spec/rspec/mocks/any_instance_spec.rb index 19a4017e5..b6b32d5d5 100644 --- a/spec/rspec/mocks/any_instance_spec.rb +++ b/spec/rspec/mocks/any_instance_spec.rb @@ -968,7 +968,7 @@ def call(*args) context 'when used in conjunction with a `dup`' do it "doesn't cause an infinite loop" do - pending "This intermittently fails on JRuby" if RUBY_PLATFORM == 'java' + skip "This intermittently fails on JRuby" if RUBY_PLATFORM == 'java' Object.any_instance.stub(:some_method) o = Object.new