Sha256: 37887775d70c1c1e5b4fbe931b1d044be035faef2947e577ad68ca2ee809405a

Contents?: true

Size: 316 Bytes

Versions: 468

Compression:

Stored size: 316 Bytes

Contents

require 'spec_helper'
require 'puppet/pops'

module Puppet::Pops
  module Time
    describe 'Timestamp' do
      it 'Does not loose microsecond precision when converted to/from String' do
        ts = Timestamp.new(1495789430910161286)
        expect(Timestamp.parse(ts.to_s)).to eql(ts)
      end
    end
  end
end

Version data entries

468 entries across 468 versions & 1 rubygems

Version Path
puppet-8.3.0 spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.0-x86-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.0-x64-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.0-universal-darwin spec/unit/pops/time/timestamp_spec.rb
puppet-8.4.0 spec/unit/pops/time/timestamp_spec.rb
puppet-8.4.0-x86-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-8.4.0-x64-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-8.4.0-universal-darwin spec/unit/pops/time/timestamp_spec.rb
puppet-7.28.0 spec/unit/pops/time/timestamp_spec.rb
puppet-7.28.0-x86-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-7.28.0-x64-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-7.28.0-universal-darwin spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.1 spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.1-x86-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.1-x64-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-8.3.1-universal-darwin spec/unit/pops/time/timestamp_spec.rb
puppet-7.27.0 spec/unit/pops/time/timestamp_spec.rb
puppet-7.27.0-x86-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-7.27.0-x64-mingw32 spec/unit/pops/time/timestamp_spec.rb
puppet-7.27.0-universal-darwin spec/unit/pops/time/timestamp_spec.rb