Skip to content
Snippets Groups Projects
Unverified Commit ac356109 authored by Nick Schonning's avatar Nick Schonning Committed by GitHub
Browse files

Autofix Rubocop RSpec/LetBeforeExamples (#23671)

parent 1a021011
No related branches found
No related tags found
No related merge requests found
......@@ -1121,12 +1121,6 @@ RSpec/LeakyConstantDeclaration:
- 'spec/lib/settings/extend_spec.rb'
- 'spec/models/concerns/remotable_spec.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
RSpec/LetBeforeExamples:
Exclude:
- 'spec/models/user_spec.rb'
# Offense count: 108
RSpec/LetSetup:
Exclude:
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment