Make Notify#note_issue_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 18:50:36 -04:00
parent bb22360d1a
commit 435fd8f087
3 changed files with 9 additions and 9 deletions

View file

@ -230,7 +230,8 @@ describe Notify do
let(:issue) { Factory.create(:issue, :project => project) }
let(:note_on_issue_url) { project_issue_url(project, issue, :anchor => "note_#{note.id}") }
before(:each) { note.stub(:noteable).and_return(issue) }
subject { Notify.note_issue_email(recipient, note) }
subject { Notify.note_issue_email(recipient.id, note.id) }
it_behaves_like 'a note email'