diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-18 17:10:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 07:10:19 +0900 |
commit | 3680e032b43e9701c0bc1f3ed5238e58cd6b7ac8 (patch) | |
tree | 5b43508887a079727af5c70d4b2ba2557acde7db /spec/controllers/admin | |
parent | 2177daeae92b77be6797ba8f2ab6ebe1e641e078 (diff) |
Autofix Rubocop RSpec/EmptyLineAfterFinalLet (#23707)
Diffstat (limited to 'spec/controllers/admin')
-rw-r--r-- | spec/controllers/admin/reports_controller_spec.rb | 1 | ||||
-rw-r--r-- | spec/controllers/admin/resets_controller_spec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/controllers/admin/reports_controller_spec.rb b/spec/controllers/admin/reports_controller_spec.rb index 4cd1524bf..4dcc277d9 100644 --- a/spec/controllers/admin/reports_controller_spec.rb +++ b/spec/controllers/admin/reports_controller_spec.rb @@ -4,6 +4,7 @@ describe Admin::ReportsController do render_views let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) } + before do sign_in user, scope: :user end diff --git a/spec/controllers/admin/resets_controller_spec.rb b/spec/controllers/admin/resets_controller_spec.rb index aeb172318..64fe027fd 100644 --- a/spec/controllers/admin/resets_controller_spec.rb +++ b/spec/controllers/admin/resets_controller_spec.rb @@ -4,6 +4,7 @@ describe Admin::ResetsController do render_views let(:account) { Fabricate(:account) } + before do sign_in Fabricate(:user, role: UserRole.find_by(name: 'Admin')), scope: :user end |