Move language detection to mandatory
Closes https://gitlab.com/gitlab-org/gitaly/issues/732 Closes https://gitlab.com/gitlab-org/gitaly/issues/360
This commit is contained in:
parent
0f18d4896c
commit
9ae8b57467
1 changed files with 19 additions and 27 deletions
|
@ -1688,7 +1688,6 @@ describe Gitlab::Git::Repository, seed_helper: true do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#languages' do
|
describe '#languages' do
|
||||||
shared_examples 'languages' do
|
|
||||||
it 'returns exactly the expected results' do
|
it 'returns exactly the expected results' do
|
||||||
languages = repository.languages('4b4918a572fa86f9771e5ba40fbd48e1eb03e2c6')
|
languages = repository.languages('4b4918a572fa86f9771e5ba40fbd48e1eb03e2c6')
|
||||||
expected_languages = [
|
expected_languages = [
|
||||||
|
@ -1719,13 +1718,6 @@ describe Gitlab::Git::Repository, seed_helper: true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'languages'
|
|
||||||
|
|
||||||
context 'with rugged', :skip_gitaly_mock do
|
|
||||||
it_behaves_like 'languages'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe '#license_short_name' do
|
describe '#license_short_name' do
|
||||||
shared_examples 'acquiring the Licensee license key' do
|
shared_examples 'acquiring the Licensee license key' do
|
||||||
subject { repository.license_short_name }
|
subject { repository.license_short_name }
|
||||||
|
|
Loading…
Reference in a new issue