1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-27 14:29:03 +09:00

Autofix Rubocop RSpec/LetBeforeExamples (#23671)

This commit is contained in:
Nick Schonning 2023-02-18 17:17:59 -05:00 committed by GitHub
parent 1a02101100
commit ac3561098e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View File

@ -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:

View File

@ -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