diff options
author | charlieablett <cablett@gitlab.com> | 2019-06-10 13:30:00 +0300 |
---|---|---|
committer | charlieablett <cablett@gitlab.com> | 2019-06-13 01:00:30 +0300 |
commit | 0c29aa0da38104c4c65cbadcc40abe25e56693aa (patch) | |
tree | 7255373495e7015771574e7dc02520e994d7445e /spec/controllers/concerns/boards_responses_spec.rb | |
parent | 714018145cb0ea3265dcfa64c9b4baa33dee588f (diff) |
Add `to_json` to `represent` method call
Diffstat (limited to 'spec/controllers/concerns/boards_responses_spec.rb')
-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 |