Commit 5ed1847e authored by Ruben Davila's avatar Ruben Davila

Fix broken specs.

parent 80e314be
...@@ -148,8 +148,7 @@ class Projects::NotesController < Projects::ApplicationController ...@@ -148,8 +148,7 @@ class Projects::NotesController < Projects::ApplicationController
def note_json(note) def note_json(note)
attrs = { attrs = {
award: false, award: false,
id: note.id, id: note.id
commands_changes: note.commands_changes
} }
if note.is_a?(AwardEmoji) if note.is_a?(AwardEmoji)
...@@ -198,6 +197,7 @@ class Projects::NotesController < Projects::ApplicationController ...@@ -198,6 +197,7 @@ class Projects::NotesController < Projects::ApplicationController
) )
end end
attrs[:commands_changes] = note.commands_changes unless attrs[:award]
attrs attrs
end end
......
...@@ -18,4 +18,3 @@ class IssuableEntity < Grape::Entity ...@@ -18,4 +18,3 @@ class IssuableEntity < Grape::Entity
expose :human_time_estimate expose :human_time_estimate
expose :human_total_time_spent expose :human_total_time_spent
end end
class IssueSerializer < BaseSerializer class IssueSerializer < BaseSerializer
entity IssueEntity entity IssueEntity
end end
class MergeRequestSerializer < BaseSerializer class MergeRequestSerializer < BaseSerializer
entity MergeRequestEntity entity MergeRequestEntity
end end
...@@ -211,3 +211,4 @@ priorities: ...@@ -211,3 +211,4 @@ priorities:
- label - label
timelogs: timelogs:
- trackable - trackable
- user
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment