Reduce complexity: replace case statement with method lookup.

This commit is contained in:
Robb Kidd 2012-10-11 13:27:58 -04:00
parent baf94bd732
commit 378fe076b6
2 changed files with 6 additions and 11 deletions

View file

@ -90,7 +90,7 @@ describe NoteObserver do
it 'does nothing for a new note on a snippet' do
note.stub(:noteable_type).and_return('Snippet')
subject.send(:notify_team_of_new_note, note).should == [true, true]
subject.send(:notify_team_of_new_note, note).should be_nil
end
end