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:
Zeger-Jan van de Weg 2018-06-14 13:21:59 +02:00
parent 0f18d4896c
commit 9ae8b57467
No known key found for this signature in database
GPG key ID: 65F6A8D64A88ABAC

View file

@ -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 }