Skip to content

Files

Latest commit

 

History

History
29 lines (19 loc) · 622 Bytes

Rails-HttpPositionalArguments.md

File metadata and controls

29 lines (19 loc) · 622 Bytes

Pattern: Positional argument in http method call

Issue: -

Description

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.

Examples

# bad
get :new, { user_id: 1}

# good
get :new, params: { user_id: 1 }

Default configuration

Attribute Value
Include spec/**/*, test/**/*

Further Reading