Sha256: e5960f9aac8698ae0ff7d2a4271f6378d59186762132cc7579172c51b6683dfb
Contents?: true
Size: 419 Bytes
Versions: 4
Compression:
Stored size: 419 Bytes
Contents
require 'test_helper' class CassandraObject::Types::TimeTypeTest < CassandraObject::Types::TestCase test 'encode' do assert_equal '2004-12-24T01:02:03.000000Z', coder.encode(Time.utc(2004, 12, 24, 1, 2, 3)) end test 'decode' do assert_nil coder.decode(nil) assert_nil coder.decode('bad format') assert_equal Time.utc(2004, 12, 24, 1, 2, 3), coder.decode('2004-12-24T01:02:03.000000Z') end end
Version data entries
4 entries across 4 versions & 1 rubygems