Reduce complexity: replace case statement with method lookup.
This commit is contained in:
parent
baf94bd732
commit
378fe076b6
2 changed files with 6 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue