diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 16:42:29 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-15 18:42:27 +0300 |
commit | 1556d4848d4753b7bddd8430cf223b91e6f47b0f (patch) | |
tree | bb4c140f0d7c6fb4509c3830bf7de7d586e3363b /spec/services | |
parent | 8b7932c21951de172d531ab8a3e9506c98db7483 (diff) |
Track a user who created a pipeline
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/create_commit_builds_service_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/create_commit_builds_service_spec.rb b/spec/services/create_commit_builds_service_spec.rb index 4d09bc5fb12..7caf69bc870 100644 --- a/spec/services/create_commit_builds_service_spec.rb +++ b/spec/services/create_commit_builds_service_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe CreateCommitBuildsService, services: true do let(:service) { CreateCommitBuildsService.new } let(:project) { FactoryGirl.create(:empty_project) } - let(:user) { nil } + let(:user) { create(:user) } before do stub_ci_pipeline_to_return_yaml_file @@ -24,6 +24,7 @@ describe CreateCommitBuildsService, services: true do it { expect(pipeline).to be_valid } it { expect(pipeline).to be_persisted } it { expect(pipeline).to eq(project.pipelines.last) } + it { expect(pipeline).to have_attributes(:user => user) } it { expect(pipeline.builds.first).to be_kind_of(Ci::Build) } end |