about summary refs log tree commit diff
path: root/spec/lib/html_aware_formatter_spec.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 23:00:48 -0500
committerGitHub <noreply@github.com>2023-02-20 05:00:48 +0100
commit38a1d8bb85da6c7a52a3bde28af368b8d2104d02 (patch)
tree31177e4c677da7ad7afc1c0fbda52b3146998339 /spec/lib/html_aware_formatter_spec.rb
parent63e63538861bd850a38a282e37de046639afa993 (diff)
Autofix Rubocop RSpec/ImplicitSubject (#23721)
Diffstat (limited to 'spec/lib/html_aware_formatter_spec.rb')
-rw-r--r--spec/lib/html_aware_formatter_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/html_aware_formatter_spec.rb b/spec/lib/html_aware_formatter_spec.rb
index 18d23abf5..3d3149b8f 100644
--- a/spec/lib/html_aware_formatter_spec.rb
+++ b/spec/lib/html_aware_formatter_spec.rb
@@ -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