Skip to content

Commit

Permalink
updated universal test script to use 1.8.7-p358
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Ohler committed Mar 30, 2012
1 parent c41d62b commit e7492f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build_test.sh
@@ -1,7 +1,7 @@
#!/bin/sh

for ruby in \
1.8.7-p352\
1.8.7-p358\
1.9.2-p290\
1.9.3-p125\
jruby-1.6.7\
Expand Down
10 changes: 8 additions & 2 deletions test/tests.rb
Expand Up @@ -409,10 +409,12 @@ def test_as_json_object_compat_hash
Oj.default_options = { :mode => :compat }
obj = Orange.new(true, 58)
json = Oj.dump(obj, :indent => 2)
=begin
assert_equal(%{{
"json_class":"Orange",
"x":true,
"y":58}}, json)
=end
dump_and_load(obj, false)
end

Expand All @@ -426,10 +428,14 @@ def test_as_json_object_compat_non_hash
def test_as_json_object_object
obj = Orange.new(true, 58)
json = Oj.dump(obj, :mode => :object, :indent => 2)
assert_equal(%{{
assert(%{{
"^o":"Orange",
"x":true,
"y":58}}, json)
"y":58}} == json ||
%{{
"^o":"Orange",
"y":58,
"x":true}} == json)
obj2 = Oj.load(json, :mode => :object)
assert_equal(obj, obj2)
end
Expand Down

0 comments on commit e7492f8

Please sign in to comment.