diff options
Diffstat (limited to 'spec/services/award_emojis/add_service_spec.rb')
-rw-r--r-- | spec/services/award_emojis/add_service_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/services/award_emojis/add_service_spec.rb b/spec/services/award_emojis/add_service_spec.rb index 99dbe6dc606..e90ea284f29 100644 --- a/spec/services/award_emojis/add_service_spec.rb +++ b/spec/services/award_emojis/add_service_spec.rb @@ -53,6 +53,12 @@ RSpec.describe AwardEmojis::AddService, feature_category: :team_planning do expect(award.user).to eq(user) end + it 'executes hooks' do + expect(service).to receive(:execute_hooks).with(kind_of(AwardEmoji), 'award') + + service.execute + end + describe 'marking Todos as done' do subject { service.execute } |