diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2019-01-17 17:35:23 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2019-01-24 20:44:09 +0300 |
commit | 22eb2e4c227b060981bb37708222cdd07e825542 (patch) | |
tree | c02c037a5877e1f7075a99806336fef8cb3b03bc /spec/finders/milestones_finder_spec.rb | |
parent | e520a946410ca0007a2a562f2c2a7c6f8c6f1dab (diff) |
Adds milestone search
Adds to search ILIKE search for milestones title in:
- Milestones dashboard
- Group milestones page
- Project milestones page
Diffstat (limited to 'spec/finders/milestones_finder_spec.rb')
-rw-r--r-- | spec/finders/milestones_finder_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/finders/milestones_finder_spec.rb b/spec/finders/milestones_finder_spec.rb index 656d120311a..ecffbb9e197 100644 --- a/spec/finders/milestones_finder_spec.rb +++ b/spec/finders/milestones_finder_spec.rb @@ -69,6 +69,12 @@ describe MilestonesFinder do expect(result.to_a).to contain_exactly(milestone_1) end + + it 'filters by search_title' do + result = described_class.new(params.merge(search_title: 'one t')).execute + + expect(result.to_a).to contain_exactly(milestone_1) + end end describe '#find_by' do |