test/unit/serializer/serializer_test.rb in jsonapi-resources-0.4.2 vs test/unit/serializer/serializer_test.rb in jsonapi-resources-0.4.3
- old
+ new
@@ -252,10 +252,16 @@
links: {
self: "/people/1/relationships/hairCut",
related: "/people/1/hairCut"
},
data: nil
+ },
+ vehicles: {
+ links: {
+ self: "/people/1/relationships/vehicles",
+ related: "/people/1/vehicles"
+ }
}
}
}
]
},
@@ -354,10 +360,16 @@
links: {
self: '/people/1/relationships/hairCut',
related: '/people/1/hairCut'
},
data: nil
+ },
+ vehicles: {
+ links: {
+ self: "/people/1/relationships/vehicles",
+ related: "/people/1/vehicles"
+ }
}
}
}
]
},
@@ -609,10 +621,16 @@
links: {
self: "/people/2/relationships/hairCut",
related: "/people/2/hairCut"
},
data: nil
- }
+ },
+ vehicles: {
+ links: {
+ self: "/people/2/relationships/vehicles",
+ related: "/people/2/vehicles"
+ }
+ },
}
},
included: [
{
type: 'comments',