Skip to content

Commit

Permalink
Add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklandgrebe committed Sep 26, 2017
1 parent 974a327 commit be8fb2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/response_document_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@
it 'serializes the relationship data' do
expect(post_params['relationships']['user']['data']).not_to be_nil
end

it 'includes the relationship' do
expect(json['included'].detect { |r| r['type'] == 'users' }).not_to be_nil
end
end

context 'when association not included' do
Expand Down

0 comments on commit be8fb2f

Please sign in to comment.