diff options
author | Igor <idrozdov@gitlab.com> | 2019-09-06 18:49:13 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-09-06 18:49:13 +0300 |
commit | e8a4ee8ad3987d5c08a07b76a83f3ccef4c546a9 (patch) | |
tree | 085822a3fb825c9fc3bd6634e14182c24c2554b7 /spec/serializers/merge_request_serializer_spec.rb | |
parent | 05fca5ff1558433029eb9771e582b99399a3eaaa (diff) |
Fix sharing localStorage with all MRs
Expose id field in the serializer in order
to store comments content in the localStorage
under the correct key
Diffstat (limited to 'spec/serializers/merge_request_serializer_spec.rb')
-rw-r--r-- | spec/serializers/merge_request_serializer_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/serializers/merge_request_serializer_spec.rb b/spec/serializers/merge_request_serializer_spec.rb index d1483c3c41e..cf0b8ea9b40 100644 --- a/spec/serializers/merge_request_serializer_spec.rb +++ b/spec/serializers/merge_request_serializer_spec.rb @@ -1,8 +1,9 @@ require 'spec_helper' describe MergeRequestSerializer do - let(:user) { create(:user) } - let(:resource) { create(:merge_request) } + set(:user) { create(:user) } + set(:resource) { create(:merge_request, description: "Description") } + let(:json_entity) do described_class.new(current_user: user) .represent(resource, serializer: serializer) |