Commit 8abf12af authored by Dmitriy Zaporozhets (DZ)'s avatar Dmitriy Zaporozhets (DZ)

Merge branch '235986-additional-tests-for-draft-regex' into 'master'

Additional tests of #work_in_progress?

See merge request gitlab-org/gitlab!71437
parents 1461cafb bab351e9
......@@ -1357,6 +1357,17 @@ RSpec.describe MergeRequest, factory_default: :keep do
end
end
[
"WIP ", "(WIP)",
"draft", "Draft"
].each do |draft_prefix|
it "doesn't detect '#{draft_prefix}' at the start of the title as a draft" do
subject.title = "#{draft_prefix}#{subject.title}"
expect(subject.work_in_progress?).to eq false
end
end
it "detects merge request title just saying 'wip'" do
subject.title = "wip"
......
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