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

Commit 92ce37c

Browse files
committed
Merge pull request #607 from rspec/fix-ruby-head
Fix warnings on Ruby 3.4.0
1 parent 4489310 commit 92ce37c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

spec/rspec/support/differ_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# encoding: utf-8
22
require 'spec_helper'
3-
require 'ostruct'
43
require 'timeout'
54
require 'rspec/support/spec/string_matcher'
65

spec/rspec/support_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def self.to_s
164164

165165
context 'with an object having a singleton class' do
166166
let(:object) do
167-
object = 'foo'
167+
object = String.new('foo')
168168

169169
def object.some_method
170170
end

0 commit comments

Comments
 (0)