diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2017-02-22 11:38:10 -0700 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2017-02-22 14:00:56 -0700 |
commit | fcb15c5677b5e73590f96f6fbb754b86f0077f93 (patch) | |
tree | 0895c7bd1c37ad92b26503c2eef23681b2300ecf /spec/requests/api/v3/templates_spec.rb | |
parent | fca326e5e29500c6c997a6b5e291e5e7b336dc1b (diff) | |
download | gitlab-ce-fcb15c5677b5e73590f96f6fbb754b86f0077f93.tar.gz |
Update Licensee from 8.0.0 to 8.7.0.cs-upgrade-licensee
Changelog: https://github.com/benbalter/licensee/releases
Diffstat (limited to 'spec/requests/api/v3/templates_spec.rb')
-rw-r--r-- | spec/requests/api/v3/templates_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/v3/templates_spec.rb b/spec/requests/api/v3/templates_spec.rb index 4fd4e70bedd..f1e554b98cc 100644 --- a/spec/requests/api/v3/templates_spec.rb +++ b/spec/requests/api/v3/templates_spec.rb @@ -56,11 +56,11 @@ describe API::V3::Templates, api: true do expect(json_response['popular']).to be true expect(json_response['html_url']).to eq('http://choosealicense.com/licenses/mit/') expect(json_response['source_url']).to eq('https://opensource.org/licenses/MIT') - expect(json_response['description']).to include('A permissive license that is short and to the point.') + expect(json_response['description']).to include('A short and simple permissive license with conditions') expect(json_response['conditions']).to eq(%w[include-copyright]) expect(json_response['permissions']).to eq(%w[commercial-use modifications distribution private-use]) expect(json_response['limitations']).to eq(%w[no-liability]) - expect(json_response['content']).to include('The MIT License (MIT)') + expect(json_response['content']).to include('MIT License') end end @@ -70,7 +70,7 @@ describe API::V3::Templates, api: true do expect(response).to have_http_status(200) expect(json_response).to be_an Array - expect(json_response.size).to eq(15) + expect(json_response.size).to eq(12) expect(json_response.map { |l| l['key'] }).to include('agpl-3.0') end @@ -98,7 +98,7 @@ describe API::V3::Templates, api: true do let(:license_type) { 'mit' } it 'returns the license text' do - expect(json_response['content']).to include('The MIT License (MIT)') + expect(json_response['content']).to include('MIT License') end it 'replaces placeholder values' do |