Skip to content

Commit

Permalink
Make StandardRB happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaunier committed Oct 21, 2022
1 parent b666e44 commit 11c1af1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/errors/check_conclusion_not_allowed_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class CheckConclusionNotAllowedError < StandardError
def initialize(allowed_conclusions)
msg = "The conclusion of one or more checks were not allowed. Allowed conclusions are: "\
msg = "The conclusion of one or more checks were not allowed. Allowed conclusions are: " \
"#{allowed_conclusions.join(", ")}. This can be configured with the 'allowed-conclusions' param."
super(msg)
end
Expand Down
4 changes: 2 additions & 2 deletions app/services/application_service.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class ApplicationService
def self.call(*args, &block)
new(*args, &block).call
def self.call(...)
new(...).call
end
end
2 changes: 1 addition & 1 deletion app/spec/services/github_checks_verifier_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
]
allow(service).to receive(:query_check_status).and_return all_checks

expected_msg = "The conclusion of one or more checks were not allowed. Allowed conclusions are: "\
expected_msg = "The conclusion of one or more checks were not allowed. Allowed conclusions are: " \
"success, skipped. This can be configured with the 'allowed-conclusions' param."
expect {
service.call
Expand Down

0 comments on commit 11c1af1

Please sign in to comment.