From 4de4045fcce4c50c8906dbc93c6464e2a20ea079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 29 Sep 2019 17:18:33 +0200 Subject: [PATCH] Allow instance variables in has filter/order specs These files create a fake class using an instance variable. While the proper thing to do would be to refactor the `HasOrders` and `HasFilters` concerns so they didn't use instance variables but methods, I don't think that's going to happen in the near future. --- .rubocop_basic.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop_basic.yml b/.rubocop_basic.yml index 94cb4d44a..f925b85cd 100644 --- a/.rubocop_basic.yml +++ b/.rubocop_basic.yml @@ -201,6 +201,9 @@ RSpec/HookArgument: RSpec/InstanceVariable: Enabled: true + Exclude: + - spec/controllers/concerns/has_filters_spec.rb + - spec/controllers/concerns/has_orders_spec.rb RSpec/LetBeforeExamples: Enabled: true