diff options
Diffstat (limited to 'spec/rubyspec/core/time/gmt_spec.rb')
-rw-r--r-- | spec/rubyspec/core/time/gmt_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/rubyspec/core/time/gmt_spec.rb b/spec/rubyspec/core/time/gmt_spec.rb new file mode 100644 index 0000000000..78ebcd0f5e --- /dev/null +++ b/spec/rubyspec/core/time/gmt_spec.rb @@ -0,0 +1,8 @@ +require File.expand_path('../../../spec_helper', __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 |