Skip to content

Commit

Permalink
Use strings instead of symbols for workflow notification recipients
Browse files Browse the repository at this point in the history
Fixes #2943
  • Loading branch information
mjgiarlo committed Nov 29, 2016
1 parent 5d58988 commit 8e2a218
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/services/sufia/workflow/abstract_notification.rb
Expand Up @@ -32,7 +32,7 @@ def message
private

def users_to_notify
recipients[:to] + recipients[:cc]
recipients['to'] + recipients['cc']
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/services/sufia/workflow/complete_notification_spec.rb
Expand Up @@ -8,7 +8,7 @@
let(:work) { create(:generic_work, user: depositor) }
let(:entity) { create(:sipity_entity, proxy_for_global_id: work.to_global_id.to_s) }
let(:comment) { double("comment", comment: 'A pleasant read') }
let(:recipients) { { to: [to_user], cc: [cc_user] } }
let(:recipients) { { 'to' => [to_user], 'cc' => [cc_user] } }

describe ".send_notification" do
it 'sends a message to all users' do
Expand Down
Expand Up @@ -7,7 +7,7 @@
let(:work) { create(:generic_work, user: depositor) }
let(:entity) { create(:sipity_entity, proxy_for_global_id: work.to_global_id.to_s) }
let(:comment) { double("comment", comment: 'A pleasant read') }
let(:recipients) { { to: [to_user], cc: [cc_user] } }
let(:recipients) { { 'to' => [to_user], 'cc' => [cc_user] } }

describe ".send_notification" do
it 'sends a message to all users except depositor' do
Expand Down

0 comments on commit 8e2a218

Please sign in to comment.