Sha256: 03a665528a8aa001372b91171773519ff0b08de2f4e7a19b038ab5f4a2a293ba
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
require 'helper' class AttributeCustomization::LocalCacheTest < ActiveSupport::TestCase test "cached_list_for" do attribute_customization = create :attribute_customization, namespace: 'Foo', name: 'bar' expected = {'bar' => attribute_customization} assert_equal expected, AttributeCustomization.namespace_cache_for('Foo').read attribute_customization.destroy assert_equal({}, AttributeCustomization.namespace_cache_for('Foo').read) end test "cached_mapping_name" do assert_equal 'attribute_customizations_Place', AttributeCustomization.namespace_cache_for('Place').cache_name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axle_attributes-1.13.2 | test/models/attribute_customization/local_cache_test.rb |