diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-05-19 23:22:45 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-05-21 16:00:49 +0200 |
commit | 1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e (patch) | |
tree | 875ab7bfa1203e68461fcedfc3df6b9a7c35b101 /activeresource/test/cases | |
parent | 048cf9e922379436f577ade30276f9c0c033ea83 (diff) | |
download | rails-1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e.tar.gz rails-1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e.tar.bz2 rails-1bc6b43f535d8b56cb6f25d36e7605d32cb0dd2e.zip |
Replace assert with assert_equal in some test cases
[#4654 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activeresource/test/cases')
-rw-r--r-- | activeresource/test/cases/base_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb index d5ee7659af..15084802f8 100644 --- a/activeresource/test/cases/base_test.rb +++ b/activeresource/test/cases/base_test.rb @@ -1017,7 +1017,7 @@ class BaseTest < Test::Unit::TestCase encode = matz.encode xml = matz.to_xml - assert encode, xml + assert_equal encode, xml assert xml.include?('<?xml version="1.0" encoding="UTF-8"?>') assert xml.include?('<name>Matz</name>') assert xml.include?('<id type="integer">1</id>') @@ -1030,7 +1030,7 @@ class BaseTest < Test::Unit::TestCase encode = matz.encode xml = matz.to_xml - assert encode, xml + assert_equal encode, xml assert xml.include?('<?xml version="1.0" encoding="UTF-8"?>') assert xml.include?('<ruby-creator>') assert xml.include?('<name>Matz</name>') @@ -1065,7 +1065,7 @@ class BaseTest < Test::Unit::TestCase json = joe.to_json Person.format = :xml - assert encode, json + assert_equal encode, json assert_match %r{^\{"ruby_creator":\{"person":\{}, json assert_match %r{"id":6}, json assert_match %r{"name":"Joe"}, json |