Another rubocop/standardrb gripe:
Style/EmptyLiteral: Use hash literal {} instead of Hash.new
Nah, I have my own heuristics for when to use which one. If it's inside a block with braces, I assert that:
# the "approved" butthole syntax
let(:params) { {} }
looks worse than
# ain't nothing wrong with this
let(:params) { Hash.new }
#rubocop #standardrb #ruby
#standardrb
1 posts · Last used Apr 22
You've seen all posts