summaryrefslogtreecommitdiff
path: root/test/psych
diff options
context:
space:
mode:
Diffstat (limited to 'test/psych')
-rw-r--r--test/psych/json/test_stream.rb2
-rw-r--r--test/psych/test_json_tree.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/psych/json/test_stream.rb b/test/psych/json/test_stream.rb
index 4690ad2f1e3..b0c33e6a2aa 100644
--- a/test/psych/json/test_stream.rb
+++ b/test/psych/json/test_stream.rb
@@ -65,7 +65,7 @@ module Psych
@stream.push list
json = @io.string
- assert_match(/]$/, json)
+ assert_match(/\]$/, json)
assert_match(/^--- \[/, json)
assert_match(/["]one["]/, json)
assert_match(/["]two["]/, json)
diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb
index 60f8321e68e..a23fc1ac8f3 100644
--- a/test/psych/test_json_tree.rb
+++ b/test/psych/test_json_tree.rb
@@ -45,7 +45,7 @@ module Psych
def test_list_to_json
list = %w{ one two }
json = Psych.to_json(list)
- assert_match(/]$/, json)
+ assert_match(/\]$/, json)
assert_match(/^\[/, json)
assert_match(/"one"/, json)
assert_match(/"two"/, json)