diff options
| author | Robb Kidd <robb@thekidds.org> | 2012-10-13 14:37:36 -0400 |
|---|---|---|
| committer | Robb Kidd <robb@thekidds.org> | 2012-10-13 14:37:36 -0400 |
| commit | 9588a232428d7045fb3e86ce36a81437a854b160 (patch) | |
| tree | dda2ec3591fbaa021b7697046de6b5e9023679e1 /spec | |
| parent | db3d90cbcb41c5b9a62998b185c90c10f9d03968 (diff) | |
| download | gitlab-ce-9588a232428d7045fb3e86ce36a81437a854b160.tar.gz | |
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.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/observers/note_observer_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/observers/note_observer_spec.rb b/spec/observers/note_observer_spec.rb index 3538cf04b94..fb5a35447d3 100644 --- a/spec/observers/note_observer_spec.rb +++ b/spec/observers/note_observer_spec.rb @@ -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) |
