Commit 1779b4a6 authored by Jason Goodman's avatar Jason Goodman Committed by Shinya Maeda

Add spec for ci cd controller

Test interface with CreatePipelineService
parent 75c603a2
...@@ -157,6 +157,14 @@ describe Projects::Settings::CiCdController do ...@@ -157,6 +157,14 @@ describe Projects::Settings::CiCdController do
subject subject
end 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
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