spec/bogus/fakes/fake_registry_spec.rb in bogus-0.1.4 vs spec/bogus/fakes/fake_registry_spec.rb in bogus-0.1.5
- old
+ new
@@ -6,19 +6,19 @@
it "knows the fake's names" do
object = Object.new
fake_registry.store(:name, object)
- fake_registry.name(object).should == :name
+ expect(fake_registry.name(object)).to eq :name
end
it "returns name based on object identity" do
example = Struct.new(:id)
object = example.new(1)
duplicate = example.new(1)
fake_registry.store(:object, object)
- fake_registry.name(duplicate).should be_nil
+ expect(fake_registry.name(duplicate)).to be_nil
end
end