Commit 2730a0da authored by Gary Holtz's avatar Gary Holtz

Reverting let_it_be change and making the spec more consistent

parent 17958a88
...@@ -7,8 +7,8 @@ RSpec.describe QuickActions::InterpretService do ...@@ -7,8 +7,8 @@ RSpec.describe QuickActions::InterpretService do
let(:developer) { create(:user) } let(:developer) { create(:user) }
let(:developer2) { create(:user) } let(:developer2) { create(:user) }
let(:user) { create(:user) } let(:user) { create(:user) }
let(:user2) { create(:user) } let_it_be(:user2) { create(:user) }
let(:user3) { create(:user) } let_it_be(:user3) { create(:user) }
let_it_be_with_refind(:group) { create(:group) } let_it_be_with_refind(:group) { create(:group) }
let_it_be_with_refind(:project) { create(:project, :repository, :public, group: group) } let_it_be_with_refind(:project) { create(:project, :repository, :public, group: group) }
let_it_be_with_reload(:issue) { create(:issue, project: project) } let_it_be_with_reload(:issue) { create(:issue, project: project) }
...@@ -1064,7 +1064,9 @@ RSpec.describe QuickActions::InterpretService do ...@@ -1064,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 @#{user.username} and @#{user3.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