diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-19 15:59:48 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-19 15:59:48 +0200 |
commit | b7e6ae03dceb168ca542ee11987b248ec62cc947 (patch) | |
tree | bfec41a3c582b07fcc084ba52a8f9e2ea6403f88 /spec/models/note_spec.rb | |
parent | 3659d3b5c6eb645756b3df79a22471f8695f133b (diff) | |
download | gitlab-ce-b7e6ae03dceb168ca542ee11987b248ec62cc947.tar.gz |
Case-insensetive search for commentscomment-case-insensetive-search
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r-- | spec/models/note_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb index 250d1e2da80..331505a01b3 100644 --- a/spec/models/note_spec.rb +++ b/spec/models/note_spec.rb @@ -198,4 +198,10 @@ describe Note do let(:backref_text) { issue.gfm_reference } let(:set_mentionable_text) { ->(txt) { subject.note = txt } } end + + describe :search do + let!(:note) { create(:note, note: "WoW") } + + it { expect(Note.search('wow')).to include(note) } + end end |