Sha256: 8c3c3617cfa61d5f29375a147e0c6ae44454400a8d17b069cadf4fb50f4d859c
Contents?: true
Size: 412 Bytes
Versions: 2
Compression:
Stored size: 412 Bytes
Contents
require 'spec_helper' describe Timeparser::Time do it "creates instance" do Timeparser::Time.new(0).should_not be_nil end it "should not round hours by default" do Timeparser::Time.new(130).hours.should eql 2 end it "should round down" do Timeparser::Time.new(130).hours(:down).should eql 2 end it "should round up" do Timeparser::Time.new(130).hours(:up).should eql 3 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timeparser-0.0.3 | spec/lib/time_spec.rb |
timeparser-0.0.2 | spec/lib/time_spec.rb |