diff options
Diffstat (limited to 'spec/finders/concerns')
-rw-r--r-- | spec/finders/concerns/finder_methods_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/finders/concerns/finder_methods_spec.rb b/spec/finders/concerns/finder_methods_spec.rb index 3e299c93eda..195449d70c3 100644 --- a/spec/finders/concerns/finder_methods_spec.rb +++ b/spec/finders/concerns/finder_methods_spec.rb @@ -7,8 +7,6 @@ RSpec.describe FinderMethods do Class.new do include FinderMethods - attr_reader :current_user - def initialize(user) @current_user = user end @@ -16,6 +14,10 @@ RSpec.describe FinderMethods do def execute Project.all.order(id: :desc) end + + private + + attr_reader :current_user end end |