Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-11-06 20:47:05 +0300
committerShinya Maeda <shinya@gitlab.com>2017-11-06 20:47:05 +0300
commitafef38533727cf32a7be324243a25b4db5eb5498 (patch)
treecfdd2c96bd0c1a7ee1fd85f0b63fd2edf0d1fe3f /spec/models
parentcb5e35d562a1bf0737c1ad3316c3723775fada01 (diff)
Add doc. Fix spec. Add erase_build in protected_ref rule
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/build_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 88f7b1775a0..1795ee8e9a4 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -270,8 +270,8 @@ describe Ci::Build do
end
end
- describe '#owned_by?' do
- subject { build.owned_by?(user) }
+ describe '#triggered_by?' do
+ subject { build.triggered_by?(user) }
context 'when user is owner' do
let(:build) { create(:ci_build, pipeline: pipeline, user: user) }