diff --git a/core/kernel/pathname_spec.rb b/core/kernel/pathname_spec.rb index 61f9e6442f..d601284649 100644 --- a/core/kernel/pathname_spec.rb +++ b/core/kernel/pathname_spec.rb @@ -11,7 +11,7 @@ path = Pathname('foo') new_path = Pathname(path) - (path.object_id == new_path.object_id).should be_false + path.should_not.equal?(new_path) end end @@ -20,7 +20,7 @@ path = Pathname('foo') new_path = Pathname(path) - (path.object_id == new_path.object_id).should be_true + path.should.equal?(new_path) end end end