Fix notification for notes on a wall.

The fact that Notes on Walls have a noteable_type value of "nil" got
lost in the refactoring of the observer.
This commit is contained in:
Robb Kidd 2012-10-13 14:37:36 -04:00
parent db3d90cbcb
commit 9588a23242
2 changed files with 3 additions and 2 deletions

View file

@ -80,7 +80,7 @@ describe NoteObserver do
subject.send(:notify_team_of_new_note, note)
end
it 'a wall' do
note.stub(:noteable_type).and_return('Wall')
note.stub(:noteable_type).and_return(nil)
Notify.should_receive(:note_wall_email).twice.and_return(double(deliver: true))
subject.send(:notify_team_of_new_note, note)