summaryrefslogtreecommitdiff
path: root/spec/requests/ci
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2017-01-26 18:51:57 -0500
committerRobert Speicher <rspeicher@gmail.com>2017-01-26 18:52:10 -0500
commit9a31ecbef23843179d4896016e1b8ae310d96e68 (patch)
tree20a1bafd93639c444386a941f9270edac7905598 /spec/requests/ci
parentf27721e842b608f4a63bd0bc59ce77175ae530ca (diff)
downloadgitlab-ce-9a31ecbef23843179d4896016e1b8ae310d96e68.tar.gz
Use `:empty_project` where possible in request specsrs-empty_project-requests
Diffstat (limited to 'spec/requests/ci')
-rw-r--r--spec/requests/ci/api/triggers_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/ci/api/triggers_spec.rb b/spec/requests/ci/api/triggers_spec.rb
index 2d434ab5dd8..a30be767119 100644
--- a/spec/requests/ci/api/triggers_spec.rb
+++ b/spec/requests/ci/api/triggers_spec.rb
@@ -5,9 +5,9 @@ describe Ci::API::Triggers do
describe 'POST /projects/:project_id/refs/:ref/trigger' do
let!(:trigger_token) { 'secure token' }
- let!(:project) { FactoryGirl.create(:project, ci_id: 10) }
- let!(:project2) { FactoryGirl.create(:empty_project, ci_id: 11) }
- let!(:trigger) { FactoryGirl.create(:ci_trigger, project: project, token: trigger_token) }
+ let!(:project) { create(:project, :repository, ci_id: 10) }
+ let!(:project2) { create(:empty_project, ci_id: 11) }
+ let!(:trigger) { create(:ci_trigger, project: project, token: trigger_token) }
let(:options) do
{
token: trigger_token