decko-commons/decko

View on GitHub
card/spec/card/format_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use args[:optional] = true instead of args.merge! optional: true.
Open

      args.merge! optional: true
Severity: Minor
Found in card/spec/card/format_spec.rb by rubocop

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)

There are no issues that match your filters.

Category
Status