Sha256: f20762df56e86e765411af11beecde6757a948c4e5eaf9683d86128f9334cab1
Contents?: true
Size: 352 Bytes
Versions: 6
Compression:
Stored size: 352 Bytes
Contents
require(File.join(File.dirname(__FILE__), '..', 'datetime_spec_helper')) describe "DateTime.now" do it "should be right now as a DateTime" do t = Time.now d = DateTime.now d.year.should == t.year d.mon.should == t.mon d.day.should == t.day d.hour.should == t.hour d.min.should == t.min d.sec.should == t.sec end end
Version data entries
6 entries across 6 versions & 1 rubygems