diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-19 01:46:30 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-04-19 11:44:11 -0300 |
commit | 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972 (patch) | |
tree | 225112fd48f4357c0f3eb5c5d14a5b93dd8f4344 /activeresource/test | |
parent | ad4615e97896428ca140411081442f1b5e7d6089 (diff) | |
download | rails-137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.tar.gz rails-137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.tar.bz2 rails-137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.zip |
Make this test pass on > 1.9
Diffstat (limited to 'activeresource/test')
-rw-r--r-- | activeresource/test/cases/base_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb index 31e0dc0abc..a424b2baf3 100644 --- a/activeresource/test/cases/base_test.rb +++ b/activeresource/test/cases/base_test.rb @@ -1022,7 +1022,11 @@ class BaseTest < Test::Unit::TestCase joe = Person.find(6) json = joe.encode Person.format = :xml - assert_equal json, '{"person":{"person":{"name":"Joe","id":6}}}' + + assert_match %r{^\{"person":\{"person":\{}, json + assert_match %r{"id":6}, json + assert_match %r{"name":"Joe"}, json + assert_match %r{\}\}\}$}, json end def test_to_param_quacks_like_active_record |