Use MultiJson in test also

This commit is contained in:
ccocchi 2012-07-24 12:13:01 +02:00
parent 959192e275
commit 8ef2ab6577
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class DeepNestingTest < ActiveSupport::TestCase
end
}
assert_equal(ActiveSupport::JSON.encode(:user => {
assert_equal(MultiJson.encode(:user => {
:id => 1,
:name => 'foobar',
:posts => [{

View File

@ -24,7 +24,7 @@ class NonRestfulResponseTest < ActiveSupport::TestCase
end
}
assert_equal(ActiveSupport::JSON.encode({
assert_equal(MultiJson.encode({
:post_count => 10,
:user => {
:id => 1,