diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2019-04-04 16:08:34 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2019-04-04 16:08:34 +0300 |
commit | e540c0d71e00c4ce031b94cf11ec3de905e87da7 (patch) | |
tree | fdd99edfd413a3473fe4a9f72719913decfd9777 /app/serializers/suggestion_entity.rb | |
parent | 30988aecd9fe8223563d02942666683fb1bd29c0 (diff) |
Fixed test specs
- added suggestions to mock data
- fixed props to be not required
Diffstat (limited to 'app/serializers/suggestion_entity.rb')
-rw-r--r-- | app/serializers/suggestion_entity.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/suggestion_entity.rb b/app/serializers/suggestion_entity.rb index 4d0d4da10be..2dd62e19e29 100644 --- a/app/serializers/suggestion_entity.rb +++ b/app/serializers/suggestion_entity.rb @@ -3,6 +3,8 @@ class SuggestionEntity < API::Entities::Suggestion include RequestAwareEntity + unexpose :from_line, :to_line, :from_content, :to_content + expose :diff_lines, using: DiffLineEntity expose :current_user do expose :can_apply do |suggestion| Ability.allowed?(current_user, :apply_suggestion, suggestion) |