Update rubocop to version 1.79.0 (#35502)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,6 +6,7 @@ RSpec.describe UnreservedUsernameValidator do
|
||||
let(:record_class) do
|
||||
Class.new do
|
||||
include ActiveModel::Validations
|
||||
|
||||
attr_accessor :username
|
||||
|
||||
validates_with UnreservedUsernameValidator
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user