Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlieablett <cablett@gitlab.com>2019-06-10 13:30:00 +0300
committercharlieablett <cablett@gitlab.com>2019-06-13 01:00:30 +0300
commit0c29aa0da38104c4c65cbadcc40abe25e56693aa (patch)
tree7255373495e7015771574e7dc02520e994d7445e /spec/controllers
parent714018145cb0ea3265dcfa64c9b4baa33dee588f (diff)
Add `to_json` to `represent` method call
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/concerns/boards_responses_spec.rb2
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