mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Update rubocop to version 1.79.0 (#35502)
This commit is contained in:
parent
960f693219
commit
2e35defeec
10 changed files with 16 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue