Commit f66c19ab authored by Stan Hu's avatar Stan Hu

Merge branch...

Merge branch '297023-flaky-ee-spec-services-quick_actions-interpret_service_spec-rb-1069' into 'master'

Resolve "Flaky ee/spec/services/quick_actions/interpret_service_spec.rb:1069"

See merge request gitlab-org/gitlab!51286
parents 9541456f 2730a0da
...@@ -107,11 +107,6 @@ RSpec.describe QuickActions::InterpretService do ...@@ -107,11 +107,6 @@ RSpec.describe QuickActions::InterpretService do
context 'assign_reviewer command' do context 'assign_reviewer command' do
context 'with a merge request' do context 'with a merge request' do
before_all do
project.add_developer(user2)
project.add_developer(user3)
end
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
it 'fetches reviewers and populates them if content contains /assign_reviewer' do it 'fetches reviewers and populates them if content contains /assign_reviewer' do
...@@ -1069,7 +1064,9 @@ RSpec.describe QuickActions::InterpretService do ...@@ -1069,7 +1064,9 @@ RSpec.describe QuickActions::InterpretService do
it 'includes only selected assignee references' do it 'includes only selected assignee references' do
_, explanations = service.explain(content, issue) _, explanations = service.explain(content, issue)
expect(explanations).to eq(["Removes assignees @#{user3.username} and @#{user.username}."]) expect(explanations.first).to match(/Removes assignees/)
expect(explanations.first).to match("@#{user3.username}")
expect(explanations.first).to match("@#{user.username}")
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment