more tests fixed

This commit is contained in:
Dmitriy Zaporozhets 2013-01-15 16:36:35 +02:00
parent b059de2ac7
commit 752eb2c11d
3 changed files with 5 additions and 9 deletions

View file

@ -191,7 +191,7 @@ describe Notify do
let(:note) { create(:note, project: project, author: note_author) }
before :each do
Note.stub(:find).with(note.id).and_return(note)
Note.stub(:find).with(note.id).and_return(note)
end
shared_examples 'a note email' do
@ -233,9 +233,10 @@ describe Notify do
commit.stub(:safe_message).and_return('some message')
end
end
before(:each) { note.stub(:noteable).and_return(commit) }
subject { Notify.note_commit_email(recipient.id, note.id) }
subject { Notify.note_commit_email(recipient.email, note.id) }
it_behaves_like 'a note email'