Skip to content

Commit d48f119

Browse files
committed
Add newlines to tests to match new suggestion format
1 parent 27f595a commit d48f119

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/requests/builds_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
expect(FakeGitHub.comments).to match_array [
5050
existing_violation_comment,
5151
{
52-
body: new_violation1[:message] << "<br>```suggestion\ndef wat\n```",
52+
body: new_violation1[:message] << "<br>\n```suggestion\ndef wat\n```",
5353
path: "path/to/test_github_file.rb",
5454
position: new_violation1[:line],
5555
pr_number: "1",

spec/requests/github_events_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
GITHUB
3636
expect(FakeGitHub.comments).to match_array [
3737
{
38-
body: new_violation[:message] << "<br>```suggestion\ndef wat\n```",
38+
body: new_violation[:message] << "<br>\n```suggestion\ndef wat\n```",
3939
path: "path/to/test_github_file.rb",
4040
position: new_violation[:line],
4141
pr_number: "1",

0 commit comments

Comments
 (0)