diff --git a/app/errors/check_conclusion_not_allowed_error.rb b/app/errors/check_conclusion_not_allowed_error.rb index b471cdf..1462d34 100644 --- a/app/errors/check_conclusion_not_allowed_error.rb +++ b/app/errors/check_conclusion_not_allowed_error.rb @@ -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 diff --git a/app/services/application_service.rb b/app/services/application_service.rb index 44262b0..48c328e 100644 --- a/app/services/application_service.rb +++ b/app/services/application_service.rb @@ -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 diff --git a/app/spec/services/github_checks_verifier_spec.rb b/app/spec/services/github_checks_verifier_spec.rb index 7b81618..5037b31 100644 --- a/app/spec/services/github_checks_verifier_spec.rb +++ b/app/spec/services/github_checks_verifier_spec.rb @@ -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