card/spec/card/format_spec.rb
Use args[:optional] = true
instead of args.merge! optional: true
. Open
Open
args.merge! optional: true
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop identifies places where Hash#merge!
can be replaced by
Hash#[]=
.
Example:
hash.merge!(a: 1)
hash.merge!({'key' => 'value'})
hash.merge!(a: 1, b: 2)