mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-07 22:42:10 +08:00
10 lines
292 B
Ruby
10 lines
292 B
Ruby
# require File.expand_path('../../../spec_helper', __FILE__)
|
|
# require File.expand_path('../fixtures/methods', __FILE__)
|
|
|
|
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
|
|
end
|
|
end
|