Autofix Rubocop Style/StringLiterals (#23695)
This commit is contained in:
parent
ac3561098e
commit
81ad6c2e39
76 changed files with 277 additions and 359 deletions
|
@ -1,4 +1,4 @@
|
|||
Fabricator(:account_moderation_note) do
|
||||
content "MyText"
|
||||
content 'MyText'
|
||||
account nil
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Fabricator(:account_note) do
|
||||
account
|
||||
target_account { Fabricate(:account) }
|
||||
comment "User note text"
|
||||
comment 'User note text'
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:account_stat) do
|
||||
account nil
|
||||
statuses_count ""
|
||||
following_count ""
|
||||
followers_count ""
|
||||
statuses_count ''
|
||||
following_count ''
|
||||
followers_count ''
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Fabricator(:account_tag_stat) do
|
||||
accounts_count ""
|
||||
accounts_count ''
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Fabricator(:account_warning_preset) do
|
||||
text "MyText"
|
||||
text 'MyText'
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Fabricator('Admin::ActionLog') do
|
||||
account nil
|
||||
action "MyString"
|
||||
action 'MyString'
|
||||
target nil
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Fabricator(:canonical_email_block) do
|
||||
email "test@example.com"
|
||||
email 'test@example.com'
|
||||
reference_account { Fabricate(:account) }
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:conversation_account) do
|
||||
account nil
|
||||
conversation nil
|
||||
participant_account_ids ""
|
||||
participant_account_ids ''
|
||||
last_status nil
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Fabricator(:custom_emoji_category) do
|
||||
name "MyString"
|
||||
name 'MyString'
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Fabricator(:domain_allow) do
|
||||
domain "MyString"
|
||||
domain 'MyString'
|
||||
end
|
||||
|
|
|
@ -3,6 +3,6 @@ Fabricator(:encrypted_message) do
|
|||
from_account
|
||||
from_device_id { Faker::Number.number(digits: 5) }
|
||||
type 0
|
||||
body ""
|
||||
message_franking ""
|
||||
body ''
|
||||
message_franking ''
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Fabricator(:identity) do
|
||||
user nil
|
||||
provider "MyString"
|
||||
uid "MyString"
|
||||
provider 'MyString'
|
||||
uid 'MyString'
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:ip_block) do
|
||||
ip ""
|
||||
severity ""
|
||||
expires_at "2020-10-08 22:20:37"
|
||||
comment "MyText"
|
||||
ip ''
|
||||
severity ''
|
||||
expires_at '2020-10-08 22:20:37'
|
||||
comment 'MyText'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Fabricator(:list) do
|
||||
account
|
||||
title "MyString"
|
||||
title 'MyString'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Fabricator(:relay) do
|
||||
inbox_url "https://example.com/inbox"
|
||||
inbox_url 'https://example.com/inbox'
|
||||
state :idle
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:report) do
|
||||
account
|
||||
target_account { Fabricate(:account) }
|
||||
comment "You nasty"
|
||||
comment 'You nasty'
|
||||
action_taken_at nil
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Fabricator(:report_note) do
|
||||
report
|
||||
account { Fabricate(:account) }
|
||||
content "Test Content"
|
||||
content 'Test Content'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Fabricator(:session_activation) do
|
||||
user
|
||||
session_id "MyString"
|
||||
session_id 'MyString'
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Fabricator(:status_edit) do
|
||||
status nil
|
||||
account nil
|
||||
text "MyText"
|
||||
spoiler_text "MyText"
|
||||
text 'MyText'
|
||||
spoiler_text 'MyText'
|
||||
media_attachments_changed false
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:status) do
|
||||
account
|
||||
text "Lorem ipsum dolor sit amet"
|
||||
text 'Lorem ipsum dolor sit amet'
|
||||
|
||||
after_build do |status|
|
||||
status.uri = Faker::Internet.device_token if !status.account.local? && status.uri.nil?
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Fabricator(:status_stat) do
|
||||
status_id nil
|
||||
replies_count ""
|
||||
reblogs_count ""
|
||||
favourites_count ""
|
||||
replies_count ''
|
||||
reblogs_count ''
|
||||
favourites_count ''
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Fabricator(:user) do
|
||||
account { Fabricate.build(:account, user: nil) }
|
||||
email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }
|
||||
password "123456789"
|
||||
password '123456789'
|
||||
confirmed_at { Time.zone.now }
|
||||
agreement true
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Fabricator(:user_role) do
|
||||
name "MyString"
|
||||
color ""
|
||||
name 'MyString'
|
||||
color ''
|
||||
permissions 0
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue