diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-11-06 20:47:05 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-11-06 20:47:05 +0300 |
commit | afef38533727cf32a7be324243a25b4db5eb5498 (patch) | |
tree | cfdd2c96bd0c1a7ee1fd85f0b63fd2edf0d1fe3f /spec/models | |
parent | cb5e35d562a1bf0737c1ad3316c3723775fada01 (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.rb | 4 |
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) } |