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:
Robb Kidd 2012-05-15 19:21:12 -04:00
parent 0a9a2c2a0b
commit 41c00a20a9
3 changed files with 7 additions and 8 deletions

View file

@ -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'