about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-18 17:17:59 -0500
committerGitHub <noreply@github.com>2023-02-19 07:17:59 +0900
commitac3561098e9cd1fd1ccee558295eb9f3430099d6 (patch)
tree8f0899c185971b4e9069410256757beb1014abd4 /spec/models
parent1a021011009607283cc8e602a8d0ebe3ecd73d92 (diff)
Autofix Rubocop RSpec/LetBeforeExamples (#23671)
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 368165f16..dde1503c0 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -2,6 +2,9 @@ require 'rails_helper'
 require 'devise_two_factor/spec_helpers'
 
 RSpec.describe User, type: :model do
+  let(:password) { 'abcd1234' }
+  let(:account) { Fabricate(:account, username: 'alice') }
+
   it_behaves_like 'two_factor_backupable'
 
   describe 'otp_secret' do
@@ -96,9 +99,6 @@ RSpec.describe User, type: :model do
     end
   end
 
-  let(:account) { Fabricate(:account, username: 'alice') }
-  let(:password) { 'abcd1234' }
-
   describe 'blacklist' do
     around(:each) do |example|
       old_blacklist = Rails.configuration.x.email_blacklist