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

Commit 4ce12ff

Browse files
committed
Remove JRuby and 1.8 workarounds
1 parent fa5b1e8 commit 4ce12ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rspec/mocks/partial_double_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def expect_output_warning_on_ruby_lt_2
184184
yield
185185
end
186186

187-
it "allows `write` to be stubbed and reset", :unless => Support::Ruby.jruby? do
187+
it "allows `write` to be stubbed and reset" do
188188
allow(file_1).to receive(:write)
189189
file_1.reopen(file_2)
190190
expect_output_warning_on_ruby_lt_2 { reset file_1 }
@@ -197,7 +197,7 @@ def expect_output_warning_on_ruby_lt_2
197197
end
198198
end
199199

200-
RSpec.describe "Using a partial mock on a proxy object", :if => defined?(::BasicObject) do
200+
RSpec.describe "Using a partial mock on a proxy object" do
201201
let(:proxy_class) do
202202
Class.new(::BasicObject) do
203203
def initialize(target)

0 commit comments

Comments
 (0)