diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-06-16 16:33:11 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-06-20 22:48:28 +0300 |
commit | 483dc62eaac0e11717b5b103317c4441ec0ff23d (patch) | |
tree | 40b5954f0f5f0f181d3fa73ec36cd1492d2e0669 /spec/requests | |
parent | 96ae6099dd5921ae32139a206d598043520fb506 (diff) |
Incorporate review
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/templates_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/requests/api/templates_spec.rb b/spec/requests/api/templates_spec.rb index 0e9a28b1ff6..a6d5ade3013 100644 --- a/spec/requests/api/templates_spec.rb +++ b/spec/requests/api/templates_spec.rb @@ -40,4 +40,13 @@ describe API::Templates, api: true do end end end + + describe 'GET /gitlab_ci_ymls/Ruby' do + it 'adds a disclaimer on the top' do + get api('/gitlab_ci_ymls/Ruby') + + expect(response.status).to eq(200) + expect(json_response['content']).to start_with("# This file is a template,") + end + end end |