diff options
author | charlieablett <cablett@gitlab.com> | 2019-06-10 22:30:00 +1200 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-06-13 10:00:30 +1200 |
commit | 0c29aa0da38104c4c65cbadcc40abe25e56693aa (patch) | |
tree | 7255373495e7015771574e7dc02520e994d7445e /spec | |
parent | 714018145cb0ea3265dcfa64c9b4baa33dee588f (diff) | |
download | gitlab-ce-0c29aa0da38104c4c65cbadcc40abe25e56693aa.tar.gz |
Add `to_json` to `represent` method callce-3861-use-serializers-for-project-group-boards
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/concerns/boards_responses_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/concerns/boards_responses_spec.rb b/spec/controllers/concerns/boards_responses_spec.rb index c080ddf896f..bdebdf94761 100644 --- a/spec/controllers/concerns/boards_responses_spec.rb +++ b/spec/controllers/concerns/boards_responses_spec.rb @@ -17,7 +17,7 @@ describe BoardsResponses do it 'serializes properly' do expected = { "id" => board.id } - expect(JSON.parse(subject.serialize_as_json(board))).to include(expected) + expect(subject.serialize_as_json(board)).to include(expected) end end end |