diff --git a/.rubocop/cop/zammad/exists_db_strategy.rb b/.rubocop/cop/zammad/exists_db_strategy.rb index e2b4dddc8..33fd0de2f 100644 --- a/.rubocop/cop/zammad/exists_db_strategy.rb +++ b/.rubocop/cop/zammad/exists_db_strategy.rb @@ -17,7 +17,7 @@ module RuboCop PATTERN def_node_matcher :has_reset?, <<-PATTERN - $(send _ {:describe :context :it :shared_examples} (_ ...) (hash ... (pair (sym :db_strategy) (sym {:reset :reset_all})))) + $(send _ {:describe :context :it :shared_examples} (_ ...) (hash <(pair (sym :db_strategy) (sym {:reset :reset_all})) ...> )) PATTERN MSG = 'Add a `db_strategy: :reset` to your context/decribe when you are creating object manager attributes!'.freeze