aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/datetime/add_spec.rb
blob: a6d98914bd91e00f26ba0f30a7144657aef93072 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../spec_helper'
require 'date'

describe "DateTime#+" do
  it "is able to add sub-millisecond precision values" do
    datetime = DateTime.new(2017)
    (datetime + 0.00001).to_time.usec.should == 864000
  end
end