Commit 994cb7e7 authored by Shinya Maeda's avatar Shinya Maeda

Merge branch 'add-ci-cd-controller-spec' into 'master'

Add Spec For Ci Cd Controller

See merge request gitlab-org/gitlab!28382
parents c3c5b313 1779b4a6
......@@ -157,6 +157,14 @@ describe Projects::Settings::CiCdController do
subject
end
it 'creates a pipeline', :sidekiq_inline do
project.repository.create_file(user, 'Gemfile', 'Gemfile contents',
message: 'Add Gemfile',
branch_name: 'master')
expect { subject }.to change { Ci::Pipeline.count }.by(1)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment