Sha256: 707499e73c785f5065fd3502603bdfe48d7829341f992d62823519005fecbb1f
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
covers 'facets/time/set' tests Time do instance do Time.utc(2010,10,01,12,15,0) end unit :set => 'year' do |t| x = t.set(:year=>2020) x.year.assert == 2020 end unit :set => 'month' do |t| x = t.set(:month=>11) x.month.assert == 11 end unit :set => 'day' do |t| x = t.set(:day=>15) x.day.assert == 15 end unit :set => 'hours' do |t| x = t.set(:hour=>12) t.hour.assert == 12 end unit :set => 'minutes' do |t| x = t.set(:minutes=>12) x.min.assert == 12 end unit :set => 'seconds' do |t| x = t.set(:seconds=>9) x.sec.assert == 9 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-2.9.0.pre.1 | test/core/time/test_set.rb |