Make Notify#note_wall_email resque friendly
Update method to take ids and then perform #finds itself during mailer queue worker kick-off.
This commit is contained in:
parent
0a9a2c2a0b
commit
41c00a20a9
3 changed files with 7 additions and 8 deletions
|
@ -174,7 +174,7 @@ describe Notify do
|
|||
describe 'on a project wall' do
|
||||
let(:note_on_the_wall_url) { wall_project_url(project, :anchor => "note_#{note.id}") }
|
||||
|
||||
subject { Notify.note_wall_email(recipient, note) }
|
||||
subject { Notify.note_wall_email(recipient.id, note.id) }
|
||||
|
||||
it_behaves_like 'a note email'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue