From bbd2ec987a6b451369132502bb0fd1493db2d4bf Mon Sep 17 00:00:00 2001 From: Tabby Cromarty Date: Fri, 14 Jun 2024 10:43:50 +0100 Subject: [PATCH] Fix violations and obsolete config --- .rubocop_todo.yml | 2 +- lib/statesman/guard.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2a4f1f52..e4a63c1f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -47,7 +47,7 @@ RSpec/ExpectInHook: # Offense count: 1 # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. # Include: **/*_spec*rb*, **/spec/**/* -RSpec/FilePath: +RSpec/SpecFilePathFormat: Exclude: - 'spec/statesman/exceptions_spec.rb' diff --git a/lib/statesman/guard.rb b/lib/statesman/guard.rb index 50a87b1b..714ff59b 100644 --- a/lib/statesman/guard.rb +++ b/lib/statesman/guard.rb @@ -6,7 +6,7 @@ module Statesman class Guard < Callback def call(*args) - raise GuardFailedError.new(from, to, callback) unless super(*args) + raise GuardFailedError.new(from, to, callback) unless super end end end