Enable Rubocop Style/StringConcatenation defaults (#23792)
This commit is contained in:
parent
7ecf783dd3
commit
0cfdd1a401
14 changed files with 25 additions and 44 deletions
|
@ -11,7 +11,7 @@ RSpec.describe DisallowedHashtagsValidator, type: :validator do
|
|||
described_class.new.validate(status)
|
||||
end
|
||||
|
||||
let(:status) { double(errors: errors, local?: local, reblog?: reblog, text: disallowed_tags.map { |x| '#' + x }.join(' ')) }
|
||||
let(:status) { double(errors: errors, local?: local, reblog?: reblog, text: disallowed_tags.map { |x| "##{x}" }.join(' ')) }
|
||||
let(:errors) { double(add: nil) }
|
||||
|
||||
context 'for a remote reblog' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue