Sha256: 4679d08bdd099580afbf5ea6a87f624b7b2754d6e3070cbf9442d3ec06775009
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 Bytes
Contents
require 'spec_helper' require 'thrift/types/known/duration' describe 'Thrift::Types::Known::Duration' do context 'from_number' do it 'from float' do d = Thrift::Types::Known::Duration.from_number(2.0005) d.seconds.should == 2 d.nanos.should == 500_000 end it 'from int' do d = Thrift::Types::Known::Duration.from_number(127) d.seconds.should == 127 d.nanos.should == 0 end end end
Version data entries
5 entries across 5 versions & 1 rubygems