aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/time
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time')
-rw-r--r--spec/ruby/core/time/at_spec.rb2
-rw-r--r--spec/ruby/core/time/succ_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/time/at_spec.rb b/spec/ruby/core/time/at_spec.rb
index 6883a8d074..58cacbf8f5 100644
--- a/spec/ruby/core/time/at_spec.rb
+++ b/spec/ruby/core/time/at_spec.rb
@@ -48,7 +48,7 @@ describe "Time.at" do
it "creates a dup time object with the value given by time" do
t1 = Time.new
t2 = Time.at(t1)
- t1.object_id.should_not == t2.object_id
+ t1.should_not equal t2
end
it "returns a UTC time if the argument is UTC" do
diff --git a/spec/ruby/core/time/succ_spec.rb b/spec/ruby/core/time/succ_spec.rb
index 6831200741..ade72165ec 100644
--- a/spec/ruby/core/time/succ_spec.rb
+++ b/spec/ruby/core/time/succ_spec.rb
@@ -14,6 +14,6 @@ describe "Time#succ" do
-> {
t2 = t1.succ
}.should complain(/Time#succ is obsolete/)
- t1.object_id.should_not == t2.object_id
+ t1.should_not equal t2
end
end