Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-29 12:10:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-29 12:10:04 +0300
commite357d4951c53a3ce4f696cf533ce24a4c6350a7e (patch)
treed41e4e557c10c1ac7f32e108d67639c945ed539e /spec/models
parent2f0a7423ed75cdf30f5bcb9d3642f06d130b53b1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/snippet_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/models/snippet_spec.rb b/spec/models/snippet_spec.rb
index 9839a20fb05..9b37a2d9ad5 100644
--- a/spec/models/snippet_spec.rb
+++ b/spec/models/snippet_spec.rb
@@ -180,22 +180,6 @@ describe Snippet do
end
end
- describe '.search_code' do
- let(:snippet) { create(:snippet, content: 'class Foo; end') }
-
- it 'returns snippets with matching content' do
- expect(described_class.search_code(snippet.content)).to eq([snippet])
- end
-
- it 'returns snippets with partially matching content' do
- expect(described_class.search_code('class')).to eq([snippet])
- end
-
- it 'returns snippets with matching content regardless of the casing' do
- expect(described_class.search_code('FOO')).to eq([snippet])
- end
- end
-
describe 'when default snippet visibility set to internal' do
using RSpec::Parameterized::TableSyntax