2
0

Update rubocop to version 1.79.0 (#35502)

This commit is contained in:
Matt Jankowski
2025-07-25 03:22:05 -04:00
committed by GitHub
parent 960f693219
commit 2e35defeec
10 changed files with 16 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ RSpec.describe AccountableConcern do
let(:hoge_class) do
Class.new do
include AccountableConcern
attr_reader :current_account
def initialize(current_account)

View File

@@ -49,6 +49,7 @@ RSpec.describe 'Routes under accounts/' do
context 'with local username encoded at' do
include RSpec::Rails::RequestExampleGroup
let(:username) { 'alice' }
it 'routes /%40:username' do
@@ -140,6 +141,7 @@ RSpec.describe 'Routes under accounts/' do
context 'with remote username encoded at' do
include RSpec::Rails::RequestExampleGroup
let(:username) { 'alice%40example.com' }
let(:username_decoded) { 'alice@example.com' }

View File

@@ -6,6 +6,7 @@ RSpec.describe ExistingUsernameValidator do
let(:record_class) do
Class.new do
include ActiveModel::Validations
attr_accessor :contact, :friends
def self.name

View File

@@ -6,6 +6,7 @@ RSpec.describe LanguageValidator do
let(:record_class) do
Class.new do
include ActiveModel::Validations
attr_accessor :locale
validates :locale, language: true

View File

@@ -6,6 +6,7 @@ RSpec.describe UnreservedUsernameValidator do
let(:record_class) do
Class.new do
include ActiveModel::Validations
attr_accessor :username
validates_with UnreservedUsernameValidator

View File

@@ -6,6 +6,7 @@ RSpec.describe URLValidator do
let(:record_class) do
Class.new do
include ActiveModel::Validations
attr_accessor :profile
validates :profile, url: true