diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-15 16:36:35 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-15 16:36:35 +0200 |
commit | 752eb2c11d9125d9b7b60bc7719db954ebb1d9a5 (patch) | |
tree | 20761fd2924fedc66363c06a6fbc484bc6821499 /spec/mailers | |
parent | b059de2ac7ad6f47a39ca124764c8e3e661e76f9 (diff) | |
download | gitlab-ce-752eb2c11d9125d9b7b60bc7719db954ebb1d9a5.tar.gz |
more tests fixed
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/notify_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index e5b4cdaf330..01e3c3f14c4 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -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' |