Sha256: 65504b32cff3f400dc0bec04ea97ffd80f7e66a3771e3390d2d60aed5241c946
Contents?: true
Size: 572 Bytes
Versions: 3
Compression:
Stored size: 572 Bytes
Contents
require 'test_helper' class ActiveModelSerializers::JsonPointerTest < ActiveSupport::TestCase def test_attribute_pointer attribute_name = 'title' pointer = ActiveModelSerializers::JsonPointer.new(:attribute, attribute_name) assert_equal '/data/attributes/title', pointer end def test_primary_data_pointer pointer = ActiveModelSerializers::JsonPointer.new(:primary_data) assert_equal '/data', pointer end def test_unkown_data_pointer assert_raises(TypeError) do ActiveModelSerializers::JsonPointer.new(:unknown) end end end
Version data entries
3 entries across 3 versions & 1 rubygems