summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time/gmt_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/gmt_spec.rb')
-rw-r--r--spec/ruby/core/time/gmt_spec.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/ruby/core/time/gmt_spec.rb b/spec/ruby/core/time/gmt_spec.rb
index 78ebcd0f5e..38e98cc43c 100644
--- a/spec/ruby/core/time/gmt_spec.rb
+++ b/spec/ruby/core/time/gmt_spec.rb
@@ -1,8 +1,7 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "Time#gmt?" do
- it "returns true if time represents a time in UTC (GMT)" do
- Time.now.gmt?.should == false
- Time.now.gmtime.gmt?.should == true
+ it "is an alias of Time#utc?" do
+ Time.instance_method(:gmt?).should == Time.instance_method(:utc?)
end
end