Skip to content

Commit

Permalink
test(): update test for rubocop 0.61.1 output syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
llekn committed Dec 13, 2018
1 parent ef0b818 commit 2784468
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion spec/jobs/linters_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
violations: [
{
line: 1,
message: "Missing magic comment # frozen_string_literal: true.",
message: "Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.",
},
],
)
Expand Down
4 changes: 2 additions & 2 deletions spec/jobs/reek_review_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def x # UncommunicativeMethodName: Smelly#x has the name 'x'
violations: [
{
line: 1,
message: "IrresponsibleModule: Smelly has no descriptive comment. [More info](https://github.com/troessner/reek/blob/master/docs/Irresponsible-Module.md).",
message: "IrresponsibleModule: Smelly has no descriptive comment. [More info](https://github.com/troessner/reek/blob/v5.2.0/docs/Irresponsible-Module.md).",
},
{
line: 2,
message: "UncommunicativeMethodName: Smelly#x has the name 'x'. [More info](https://github.com/troessner/reek/blob/master/docs/Uncommunicative-Method-Name.md).",
message: "UncommunicativeMethodName: Smelly#x has the name 'x'. [More info](https://github.com/troessner/reek/blob/v5.2.0/docs/Uncommunicative-Method-Name.md).",
},
]
)
Expand Down
8 changes: 4 additions & 4 deletions spec/jobs/rubocop_review_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def foo(bar:, baz:)
violations: [
{
line: 3,
message: "Unused method argument - baz.",
message: "Lint/UnusedMethodArgument: Unused method argument - baz.",
},
],
)
Expand Down Expand Up @@ -69,7 +69,7 @@ def foo(bar:, baz:)
violations: [
{
line: 3,
message: "Unused method argument - baz.",
message: "Lint/UnusedMethodArgument: Unused method argument - baz.",
},
],
)
Expand Down Expand Up @@ -98,7 +98,7 @@ def foo(bar:, baz:)
violations: [
{
line: 3,
message: "Unused method argument - baz.",
message: "Lint/UnusedMethodArgument: Unused method argument - baz.",
},
],
)
Expand All @@ -115,7 +115,7 @@ def foo(bar:, baz:)
violations: [
{
line: 1,
message: "unexpected token tINTEGER",
message: "Lint/Syntax: unexpected token tINTEGER",
},
],
)
Expand Down

0 comments on commit 2784468

Please sign in to comment.