summaryrefslogtreecommitdiff
path: root/spec/models/ci/trigger_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/ci/trigger_spec.rb')
-rw-r--r--spec/models/ci/trigger_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/trigger_spec.rb b/spec/models/ci/trigger_spec.rb
index bd9c837402f..d4b72205203 100644
--- a/spec/models/ci/trigger_spec.rb
+++ b/spec/models/ci/trigger_spec.rb
@@ -69,7 +69,7 @@ describe Ci::Trigger do
context 'and is member of the project' do
before do
- project.team << [owner, :developer]
+ project.add_developer(owner)
end
it { is_expected.to eq(true) }