blob: 9c9f74c7da27e5091a3440db6480ee7bf1233c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::HookData::EmojiBuilder, feature_category: :team_planning do
let_it_be(:award_emoji) { create(:award_emoji) }
let(:builder) { described_class.new(award_emoji) }
describe '#build' do
let(:data) { builder.build }
it 'includes safe attributes' do
expect(data.keys).to match_array(
%w[
user_id
created_at
id
name
awardable_type
awardable_id
updated_at
]
)
end
end
end
|