summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-01-05 00:12:51 +0100
committerFlorian Frank <flori@ping.de>2011-01-05 00:12:51 +0100
commit0b15820e245f4048d1bcd29cd60693e4e211ab43 (patch)
treeabffda1af3d23b47739d88fd089609cffa378ed7 /tests
parentc87f6f3022f9b7c1b1317e958976e2ed6d4f4ae4 (diff)
downloadjson-0b15820e245f4048d1bcd29cd60693e4e211ab43.tar.gz
renamed :match argument to :match_stringv1.5.0
Diffstat (limited to 'tests')
-rw-r--r--tests/test_json_string_matching.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_json_string_matching.rb b/tests/test_json_string_matching.rb
index 6bd74e3..df26a68 100644
--- a/tests/test_json_string_matching.rb
+++ b/tests/test_json_string_matching.rb
@@ -28,13 +28,13 @@ class TestJsonStringMatching < Test::Unit::TestCase
t_json = [ t ].to_json
assert_equal [ t ],
JSON.parse(t_json,
- :match => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
+ :match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
assert_equal [ t.strftime('%FT%T%z') ],
JSON.parse(t_json,
- :match => { /\A\d{3}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
+ :match_string => { /\A\d{3}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
assert_equal [ t.strftime('%FT%T%z') ],
JSON.parse(t_json,
- :match => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime },
+ :match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime },
:create_additions => false)
end
end