require 'helper' class AxleAttributes::Serializations::ReflectionTest < ActiveSupport::TestCase test 'collection' do assert reflection_class.new(:serialize_many, :doggies, {}).collection? refute reflection_class.new(:serialize_one, :doggy, {}).collection? end test 'counter_cache_column' do assert_equal 'doggies_count', reflection_class.new(:serialize_many, :doggies, {}).counter_cache_column assert_nil reflection_class.new(:serialize_many, :doggies, counter_cache: false).counter_cache_column end test 'klass' do end private def reflection_class AxleAttributes::Serializations::Reflection end end