Sha256: fd80eee058d73a37f6aa8e7466848aeb1f25855124d26b57cd596192f72524b1

Contents?: true

Size: 353 Bytes

Versions: 11

Compression:

Stored size: 353 Bytes

Contents

require 'test_helper'

class CassandraObject::Types::ArrayTypeTest < CassandraObject::Types::TestCase
  test 'encode' do
    assert_equal ['1', '2'].to_json, coder.encode(['1', '2'])
    
    assert_raise ArgumentError do
      coder.encode('wtf')
    end
  end

  test 'decode' do
    assert_equal ['1', '2'], coder.decode(['1', '2'].to_json)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.5.0 test/types/array_type_test.rb
gotime-cassandra_object-2.4.2 test/types/array_type_test.rb
gotime-cassandra_object-2.4.1 test/types/array_type_test.rb
gotime-cassandra_object-2.4.0 test/types/array_type_test.rb
gotime-cassandra_object-2.3.6 test/types/array_type_test.rb
gotime-cassandra_object-2.3.5 test/types/array_type_test.rb
gotime-cassandra_object-2.3.4 test/types/array_type_test.rb
gotime-cassandra_object-2.3.3 test/types/array_type_test.rb
gotime-cassandra_object-2.3.2 test/types/array_type_test.rb
gotime-cassandra_object-2.3.1 test/types/array_type_test.rb
gotime-cassandra_object-2.3.0 test/types/array_type_test.rb