Pattern: Positional argument in http method call
Issue: -
This rule is used to identify usages of http methods like get
, post
,
put
, patch
without the usage of keyword arguments in your tests and
change them to use keyword args.
# bad
get :new, { user_id: 1}
# good
get :new, params: { user_id: 1 }
Attribute | Value |
---|---|
Include | spec/**/*, test/**/* |