aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-04-19 01:46:30 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-04-19 11:44:11 -0300
commit137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972 (patch)
tree225112fd48f4357c0f3eb5c5d14a5b93dd8f4344 /activeresource
parentad4615e97896428ca140411081442f1b5e7d6089 (diff)
downloadrails-137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.tar.gz
rails-137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.tar.bz2
rails-137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972.zip
Make this test pass on > 1.9
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/test/cases/base_test.rb6
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