Commit 09a77e92 authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Fix issuable spec duplication

parent 999ba82d
...@@ -404,7 +404,6 @@ RSpec/RepeatedExample: ...@@ -404,7 +404,6 @@ RSpec/RepeatedExample:
- 'spec/lib/gitlab/closing_issue_extractor_spec.rb' - 'spec/lib/gitlab/closing_issue_extractor_spec.rb'
- 'spec/lib/gitlab/danger/changelog_spec.rb' - 'spec/lib/gitlab/danger/changelog_spec.rb'
- 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb' - 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb'
- 'spec/models/concerns/issuable_spec.rb'
- 'spec/models/project_services/chat_message/pipeline_message_spec.rb' - 'spec/models/project_services/chat_message/pipeline_message_spec.rb'
- 'spec/routing/admin_routing_spec.rb' - 'spec/routing/admin_routing_spec.rb'
- 'spec/rubocop/cop/migration/update_large_table_spec.rb' - 'spec/rubocop/cop/migration/update_large_table_spec.rb'
......
---
title: Fix issuable duplicate spec
merge_request: 28632
author: Rajendra Kadam
type: added
...@@ -159,8 +159,7 @@ describe Issuable do ...@@ -159,8 +159,7 @@ describe Issuable do
end end
it 'returns issues with a partially matching description' do it 'returns issues with a partially matching description' do
expect(issuable_class.full_search(searchable_issue.description)) expect(issuable_class.full_search('cut')).to eq([searchable_issue])
.to eq([searchable_issue])
end end
it 'returns issues with a matching description regardless of the casing' do it 'returns issues with a matching description regardless of the casing' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment