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:
authorblackst0ne <blackst0ne.ru@gmail.com>2017-12-22 11:18:28 +0300
committerblackst0ne <blackst0ne.ru@gmail.com>2017-12-22 11:18:28 +0300
commit27c95364b52f4e93054c45211010aeb22e40a2b2 (patch)
treeb817a1aa7bc4416bfc4cc2e51b2856d36479faf8 /spec/support/updating_mentions_shared_examples.rb
parent36f4710301926bb853b35d9b14a60e03b42def34 (diff)
Replace '.team << [user, role]' with 'add_role(user)' in specs
Diffstat (limited to 'spec/support/updating_mentions_shared_examples.rb')
-rw-r--r--spec/support/updating_mentions_shared_examples.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/updating_mentions_shared_examples.rb b/spec/support/updating_mentions_shared_examples.rb
index 565d3203e4f..5e3f19ba19e 100644
--- a/spec/support/updating_mentions_shared_examples.rb
+++ b/spec/support/updating_mentions_shared_examples.rb
@@ -3,7 +3,7 @@ RSpec.shared_examples 'updating mentions' do |service_class|
let(:service_class) { service_class }
before do
- project.team << [mentioned_user, :developer]
+ project.add_developer(mentioned_user)
end
def update_mentionable(opts)