This commit is contained in:
Benjamin Fleischer 2017-10-31 14:48:27 -05:00
parent 9745a2f735
commit 51f2643f40

View File

@ -138,12 +138,12 @@ module ActiveModelSerializers
def test_for_type_with_id
id = 1
actual = ResourceIdentifier.for_type_with_id('admin_user', id, {})
expected = { id: "1", type: 'admin-users' }
expected = { id: '1', type: 'admin-users' }
assert_equal actual, expected
end
def test_for_type_with_id_given_blank_id
id = ""
id = ''
actual = ResourceIdentifier.for_type_with_id('admin_user', id, {})
expected = { type: 'admin-users' }
assert_equal actual, expected
@ -154,7 +154,7 @@ module ActiveModelSerializers
actual = with_jsonapi_inflection :singular do
ResourceIdentifier.for_type_with_id('admin_users', id, {})
end
expected = { id: "2", type: 'admin-user' }
expected = { id: '2', type: 'admin-user' }
assert_equal actual, expected
end