summaryrefslogtreecommitdiff
path: root/test/text_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-07-31 04:25:30 -0600
committerDan Allen <dan.j.allen@gmail.com>2021-07-31 04:25:30 -0600
commite9733a03bc725daade57b0e46a21aa45f647030c (patch)
tree0158955f9b1cdeef45a0ec65d5b0d155dfe43a4c /test/text_test.rb
parente55f298e1ffc9c79168f8768146b2739d8c1504d (diff)
use single quoted string or use %() for interpolated string in test suite
Diffstat (limited to 'test/text_test.rb')
-rw-r--r--test/text_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/text_test.rb b/test/text_test.rb
index e71da03c..3ebf2641 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -193,7 +193,7 @@ context 'Text' do
end
test 'escaped single quote is restored as single quote' do
- assert_xpath "//p[contains(text(), \"Let's do it!\")]", convert_string("Let\\'s do it!")
+ assert_xpath %q(//p[contains(text(), "Let's do it!")]), convert_string(%q(Let\\'s do it!))
end
test 'unescape escaped single quote emphasis in compat mode only' do