Use MultiJson in test also
This commit is contained in:
parent
959192e275
commit
8ef2ab6577
|
@ -40,7 +40,7 @@ class DeepNestingTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_equal(ActiveSupport::JSON.encode(:user => {
|
assert_equal(MultiJson.encode(:user => {
|
||||||
:id => 1,
|
:id => 1,
|
||||||
:name => 'foobar',
|
:name => 'foobar',
|
||||||
:posts => [{
|
:posts => [{
|
||||||
|
|
|
@ -24,7 +24,7 @@ class NonRestfulResponseTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_equal(ActiveSupport::JSON.encode({
|
assert_equal(MultiJson.encode({
|
||||||
:post_count => 10,
|
:post_count => 10,
|
||||||
:user => {
|
:user => {
|
||||||
:id => 1,
|
:id => 1,
|
||||||
|
|
Loading…
Reference in New Issue