Sha256: c02ab31218ecdc93548cf7b7d4d2cb89f9b5c5c1794172056439e1dca1f15add
Contents?: true
Size: 656 Bytes
Versions: 61
Compression:
Stored size: 656 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) class CompositeArraysTest < ActiveSupport::TestCase def test_new_primary_keys keys = CompositePrimaryKeys::CompositeKeys.new assert_not_nil keys assert_equal '', keys.to_s assert_equal '', "#{keys}" end def test_initialize_primary_keys keys = CompositePrimaryKeys::CompositeKeys.new([1,2,3]) assert_not_nil keys assert_equal '1,2,3', keys.to_s assert_equal '1,2,3', "#{keys}" end def test_to_composite_keys keys = [1,2,3].to_composite_keys assert_equal CompositePrimaryKeys::CompositeKeys, keys.class assert_equal '1,2,3', keys.to_s end end
Version data entries
61 entries across 61 versions & 1 rubygems