Maintenance: Fix ExistsDbStrategy to not depend of the position of the db_strategy hash element.
This commit is contained in:
parent
140ebbb3ff
commit
0e60fd5f62
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ module RuboCop
|
|||
PATTERN
|
||||
|
||||
def_node_matcher :has_reset?, <<-PATTERN
|
||||
$(send _ {:describe :context :it} (_ ...) (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
|
||||
|
|
Loading…
Reference in a new issue