diff --git a/spec/rspec/support/differ_spec.rb b/spec/rspec/support/differ_spec.rb index cbd1ed28..63a1e76c 100644 --- a/spec/rspec/support/differ_spec.rb +++ b/spec/rspec/support/differ_spec.rb @@ -1,6 +1,5 @@ # encoding: utf-8 require 'spec_helper' -require 'ostruct' require 'timeout' require 'rspec/support/spec/string_matcher' diff --git a/spec/rspec/support_spec.rb b/spec/rspec/support_spec.rb index 75d784dd..997658b1 100644 --- a/spec/rspec/support_spec.rb +++ b/spec/rspec/support_spec.rb @@ -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