Skip to content

Commit

Permalink
Add newlines to tests to match new suggestion format
Browse files Browse the repository at this point in the history
  • Loading branch information
salbertson committed Mar 30, 2020
1 parent 27f595a commit d48f119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/requests/builds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
expect(FakeGitHub.comments).to match_array [
existing_violation_comment,
{
body: new_violation1[:message] << "<br>```suggestion\ndef wat\n```",
body: new_violation1[:message] << "<br>\n```suggestion\ndef wat\n```",
path: "path/to/test_github_file.rb",
position: new_violation1[:line],
pr_number: "1",
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/github_events_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
GITHUB
expect(FakeGitHub.comments).to match_array [
{
body: new_violation[:message] << "<br>```suggestion\ndef wat\n```",
body: new_violation[:message] << "<br>\n```suggestion\ndef wat\n```",
path: "path/to/test_github_file.rb",
position: new_violation[:line],
pr_number: "1",
Expand Down

0 comments on commit d48f119

Please sign in to comment.