Sha256: 47d65f5afd00cfa471aedaa1ff4bad3d2c94bb1b74e23061e6ddb62222cc02b3
Contents?: true
Size: 1.03 KB
Versions: 378
Compression:
Stored size: 1.03 KB
Contents
require "spec" require "../src/*" describe "Gigasecond" do describe "#from" do it "finds gigsecond from 2011_04_25" do result = Gigasecond.from(Time.new(2011, 4, 25, 0, 0, 0)) result.should eq Time.new(2043, 1, 1, 1, 46, 40) end pending "finds gigsecond from 1977_06_13" do result = Gigasecond.from(Time.new(1977, 6, 13, 0, 0, 0)) result.should eq Time.new(2009, 2, 19, 1, 46, 40) end pending "finds gigsecond from 1959_07_19" do result = Gigasecond.from(Time.new(1959, 7, 19, 0, 0, 0)) result.should eq Time.new(1991, 3, 27, 1, 46, 40) end pending "finds gigsecond with full_time specified" do result = Gigasecond.from(Time.new(2015, 1, 24, 22, 0, 0)) result.should eq Time.new(2046, 10, 2, 23, 46, 40) end pending "finds gigsecond with full_time with day rollover" do result = Gigasecond.from(Time.new(2015, 1, 24, 23, 59, 59)) result.should eq Time.new(2046, 10, 3, 1, 46, 39) end pending "test_with_your_birthday" do end end end
Version data entries
378 entries across 378 versions & 1 rubygems