spec/rspec/mocks/serialization_spec.rb in rspec-mocks-2.12.1 vs spec/rspec/mocks/serialization_spec.rb in rspec-mocks-2.12.2
- old
+ new
@@ -85,13 +85,13 @@
end
end
without_yaml_loaded do
it 'does not add #to_yaml to the stubbed object' do
- serializable_object.should_not respond_to(:to_yaml)
+ expect(serializable_object).not_to respond_to(:to_yaml)
set_stub
- serializable_object.should_not respond_to(:to_yaml)
+ expect(serializable_object).not_to respond_to(:to_yaml)
end
end
it 'marshals the same with and without stubbing' do
expect { set_stub }.to_not change { Marshal.dump(serializable_object) }
@@ -100,10 +100,10 @@
describe "an object that has its own mock_proxy instance variable" do
let(:serializable_object) { RSpec::Mocks::SerializableMockProxy.new(:my_mock_proxy) }
it 'does not interfere with its marshalling' do
marshalled_copy = Marshal.load(Marshal.dump(serializable_object))
- marshalled_copy.should eq serializable_object
+ expect(marshalled_copy).to eq serializable_object
end
end
end
end
end