summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/observers/note_observer_spec.rb2
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)