diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-08-18 08:50:01 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:10:49 +0200 |
commit | fb1c7254d5764fb495d73b7e5bb16d60fd09bf03 (patch) | |
tree | 9f697c42d5fb42da3006160e1d37dbb08e39cc05 /spec/requests | |
parent | 1d5488699678d22644d24add4b89cede0419ad25 (diff) | |
download | gitlab-ce-fb1c7254d5764fb495d73b7e5bb16d60fd09bf03.tar.gz |
API for CI Lint
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/ci/api/lint_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/requests/ci/api/lint_spec.rb b/spec/requests/ci/api/lint_spec.rb new file mode 100644 index 00000000000..2ffd88120ae --- /dev/null +++ b/spec/requests/ci/api/lint_spec.rb @@ -0,0 +1,23 @@ +require 'spec_helper' + +describe Ci::API::API do + include ApiHelpers + + let(:content) do + File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci.yml')) + end + + describe "Builds API for Lint" do + + describe 'POST /ci/lint' do + before { content } + + context "with valid .gitlab-ci.yaml file" do + it "has success status" do + # binding.pry + expect(response).to have_content(true) + end + end + end + end +end |