diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-30 16:38:36 +0300 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 13:10:49 +0300 |
commit | 0d81fd05b905e5fe41fee6bb48214748ccf85e78 (patch) | |
tree | ecda31a5ba5559754a1e2cbbd9399fb9e9f22bd9 /spec/requests/api/lint_spec.rb | |
parent | 1a7a900d8e4a4a3a65b33054168fdd86f252b757 (diff) |
Code refactor
Diffstat (limited to 'spec/requests/api/lint_spec.rb')
-rw-r--r-- | spec/requests/api/lint_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/lint_spec.rb b/spec/requests/api/lint_spec.rb index c791b4891b6..391fc13a380 100644 --- a/spec/requests/api/lint_spec.rb +++ b/spec/requests/api/lint_spec.rb @@ -4,11 +4,11 @@ describe API::Lint, api: true do include ApiHelpers describe 'POST /ci/lint' do - let(:yaml_content) do - File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci.yml')) - end - context 'with valid .gitlab-ci.yaml content' do + let(:yaml_content) do + File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci.yml')) + end + it 'passes validation' do post api('/ci/lint'), { content: yaml_content } |