Autofix Rubocop RSpec/ImplicitSubject (#23721)
This commit is contained in:
parent
63e6353886
commit
38a1d8bb85
26 changed files with 184 additions and 221 deletions
|
@ -9,7 +9,7 @@ RSpec.describe HtmlAwareFormatter do
|
|||
let(:text) { 'Foo bar' }
|
||||
|
||||
it 'returns formatted text' do
|
||||
is_expected.to eq '<p>Foo bar</p>'
|
||||
expect(subject).to eq '<p>Foo bar</p>'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -20,7 +20,7 @@ RSpec.describe HtmlAwareFormatter do
|
|||
let(:text) { 'Beep boop' }
|
||||
|
||||
it 'keeps the plain text' do
|
||||
is_expected.to include 'Beep boop'
|
||||
expect(subject).to include 'Beep boop'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -28,7 +28,7 @@ RSpec.describe HtmlAwareFormatter do
|
|||
let(:text) { '<script>alert("Hello")</script>' }
|
||||
|
||||
it 'strips the scripts' do
|
||||
is_expected.to_not include '<script>alert("Hello")</script>'
|
||||
expect(subject).to_not include '<script>alert("Hello")</script>'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -36,7 +36,7 @@ RSpec.describe HtmlAwareFormatter do
|
|||
let(:text) { '<span class="mention status__content__spoiler-link">Show more</span>' }
|
||||
|
||||
it 'strips the malicious classes' do
|
||||
is_expected.to_not include 'status__content__spoiler-link'
|
||||
expect(subject).to_not include 'status__content__spoiler-link'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue