Sha256: e32d592dadc4f6d61b8b65b6aeba7097b0abbfd3f44c101c8c64270110e7a048
Contents?: true
Size: 510 Bytes
Versions: 18
Compression:
Stored size: 510 Bytes
Contents
require 'test_helper' class Superstore::Types::ArrayTypeTest < Superstore::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) assert_equal nil, coder.decode(nil) assert_equal nil, coder.decode('') end test 'typecast' do assert_equal ['x', 'y'], coder.typecast(['x', 'y'].to_set) end end
Version data entries
18 entries across 18 versions & 1 rubygems