Skip to content

Commit

Permalink
Try to reproduce danger#1332
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Feb 3, 2022
1 parent 4300005 commit 92630ff
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/lib/danger/request_sources/bitbucket_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,21 @@
end
end
end

describe "#inline_violations_group" do
context "with multiple violations with the same severity to the same file and path" do
it "sorts violations without raising an error" do
warnings = [
Danger::Violation.new("foo", false, "file.rb", 1, type: :warning),
Danger::Violation.new("bar", false, "file.rb", 1, type: :warning)
]
expect(bs.inline_violations_group(warnings: warnings)).to eq({
warnings: warnings,
errors: [],
messages: [],
markdowns: []
})
end
end
end
end

0 comments on commit 92630ff

Please sign in to comment.