about summary refs log tree commit diff
path: root/spec/lib
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:32:57 -0500
committerGitHub <noreply@github.com>2023-02-18 03:32:57 +0100
commitefd424506accea3ddc21ff77a3ca5b7946e00211 (patch)
tree2a79dc95877ce7009bd0545caadd63b8eeb51f67 /spec/lib
parent7a941b42d399e571bce8782b7a2e31cb49214a8e (diff)
Autofix Rubocop Style/RedundantPercentQ (#23651)
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/text_formatter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/text_formatter_spec.rb b/spec/lib/text_formatter_spec.rb
index 52a9d2498..d4a3a6b59 100644
--- a/spec/lib/text_formatter_spec.rb
+++ b/spec/lib/text_formatter_spec.rb
@@ -223,7 +223,7 @@ RSpec.describe TextFormatter do
     end
 
     context 'given a URL containing unsafe code (XSS attack, visible part)' do
-      let(:text) { %q{http://example.com/b<del>b</del>} }
+      let(:text) { 'http://example.com/b<del>b</del>' }
 
       it 'does not include the HTML in the URL' do
         is_expected.to include '"http://example.com/b"'
@@ -235,7 +235,7 @@ RSpec.describe TextFormatter do
     end
 
     context 'given a URL containing unsafe code (XSS attack, invisible part)' do
-      let(:text) { %q{http://example.com/blahblahblahblah/a<script>alert("Hello")</script>} }
+      let(:text) { 'http://example.com/blahblahblahblah/a<script>alert("Hello")</script>' }
 
       it 'does not include the HTML in the URL' do
         is_expected.to include '"http://example.com/blahblahblahblah/a"'