Sha256: 7c5428fe33208c4e310d25d04a48258b2e77fba03a2a2a6d52ac2edfd3f85ff8
Contents?: true
Size: 593 Bytes
Versions: 27
Compression:
Stored size: 593 Bytes
Contents
require 'test_helper' class CassandraObject::Types::StringTypeTest < CassandraObject::Types::TestCase test 'encode' do assert_equal 'abc', coder.encode('abc') assert_raise ArgumentError do coder.encode(123) end end test 'wrap' do assert_equal( '123'.force_encoding('UTF-8').encoding, coder.wrap(nil, nil, '123'.force_encoding('ASCII-8BIT')).encoding ) end test 'wrap when frozen' do assert_equal( '123'.force_encoding('UTF-8').encoding, coder.wrap(nil, nil, '123'.force_encoding('ASCII-8BIT').freeze).encoding ) end end
Version data entries
27 entries across 27 versions & 1 rubygems