spec/serializer_spec.rb in jsonapi-serializers-0.2.1 vs spec/serializer_spec.rb in jsonapi-serializers-0.2.2
- old
+ new
@@ -23,11 +23,10 @@
'long-content' => 'Body for Post 1',
},
'links' => {
'self' => '/posts/1',
},
- 'relationships' => {},
})
end
it 'can serialize primary data for a simple object with a long name' do
long_comment = create(:long_comment, post: create(:post))
primary_data = serialize_primary(long_comment, {serializer: MyApp::LongCommentSerializer})
@@ -67,10 +66,9 @@
'long-content' => 'Body for Post 1',
},
'links' => {
'self' => '/posts/1',
},
- 'relationships' => {},
'meta' => {
'copyright' => 'Copyright 2015 Example Corp.',
'authors' => [
'Aliens',
],
\ No newline at end of file