summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-07-14 18:17:31 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-07-14 18:17:31 +0200
commit682b32878781def3630f2a1f8b39141f74f813c7 (patch)
tree7f860522a07bb415464ee7c0bfb8d9cc94cf95c7 /spec
parent60b91b46f289b1e4ac72827cf01370b2604622ac (diff)
downloadgitlab-ce-682b32878781def3630f2a1f8b39141f74f813c7.tar.gz
Remove Repository#search_filesremove-git-search-files
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/gitlab/git/repository_spec.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/lib/gitlab/git/repository_spec.rb b/spec/lib/gitlab/git/repository_spec.rb
index 10fa5f4044b..d6cec0f94a5 100644
--- a/spec/lib/gitlab/git/repository_spec.rb
+++ b/spec/lib/gitlab/git/repository_spec.rb
@@ -278,42 +278,6 @@ describe Gitlab::Git::Repository, seed_helper: true do
end
end
- describe '#search_files' do
- let(:results) { repository.search_files('rails', 'master') }
- subject { results }
-
- it { is_expected.to be_kind_of Array }
-
- describe '#first' do
- subject { super().first }
- it { is_expected.to be_kind_of Gitlab::Git::BlobSnippet }
- end
-
- context 'blob result' do
- subject { results.first }
-
- describe '#ref' do
- subject { super().ref }
- it { is_expected.to eq('master') }
- end
-
- describe '#filename' do
- subject { super().filename }
- it { is_expected.to eq('CHANGELOG') }
- end
-
- describe '#startline' do
- subject { super().startline }
- it { is_expected.to eq(35) }
- end
-
- describe '#data' do
- subject { super().data }
- it { is_expected.to include "Ability to filter by multiple labels" }
- end
- end
- end
-
describe '#submodule_url_for' do
let(:repository) { Gitlab::Git::Repository.new('default', TEST_REPO_PATH) }
let(:ref) { 'master' }