Fix all Layout/SpaceInLambdaLiteral rubocop issues and remove files from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-26 18:05:14 +02:00
parent f6fe9cc7d2
commit c4d90691b1
8 changed files with 14 additions and 25 deletions

View File

@@ -7,7 +7,7 @@ describe 'HasOrders' do
controller(FakeController) do
include HasOrders
has_orders ['created_at', 'votes_count', 'flags_count', 'relevance'], only: :index
has_orders -> (c) { ['votes_count', 'flags_count'] }, only: :new
has_orders ->(c) { ['votes_count', 'flags_count'] }, only: :new
def index
render text: "#{@current_order} (#{@valid_orders.join(' ')})"