Skip to content

Commit

Permalink
Merge pull request #607 from rspec/fix-ruby-head
Browse files Browse the repository at this point in the history
Fix warnings on Ruby 3.4.0
  • Loading branch information
JonRowe committed Jul 15, 2024
1 parent 4489310 commit 92ce37c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion spec/rspec/support/differ_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# encoding: utf-8
require 'spec_helper'
require 'ostruct'
require 'timeout'
require 'rspec/support/spec/string_matcher'

Expand Down
2 changes: 1 addition & 1 deletion spec/rspec/support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def self.to_s

context 'with an object having a singleton class' do
let(:object) do
object = 'foo'
object = String.new('foo')

def object.some_method
end
Expand Down

0 comments on commit 92ce37c

Please sign in to comment.