diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb
index 3a34df2426e8a1b0a9a41f5d8b17deb41e74f067..2a5e683f966e33fec9e26555cfbbbfe85a26470e 100644
--- a/activerecord/test/cases/validations_test.rb
+++ b/activerecord/test/cases/validations_test.rb
@@ -65,7 +65,7 @@ def test_error_on_update
def test_error_on_given_context
r = WrongReply.new
assert !r.valid?(:special_case)
- assert "Invalid", r.errors[:title].join
+ assert_equal "Invalid", r.errors[:title].join
r.title = "secret"
r.content = "Good"
@@ -73,7 +73,7 @@ def test_error_on_given_context
r.title = nil
assert !r.save(:context => :special_case)
- assert "Invalid", r.errors[:title].join
+ assert_equal "Invalid", r.errors[:title].join
r.title = "secret"
assert r.save(:context => :special_case)
diff --git a/activeresource/test/cases/base_test.rb b/activeresource/test/cases/base_test.rb
index d5ee7659af0218f02a0cdea7ac1c88c59d09fdc3..15084802f85379c19b10dbb828eb0e4fa8b28321 100644
--- a/activeresource/test/cases/base_test.rb
+++ b/activeresource/test/cases/base_test.rb
@@ -1017,7 +1017,7 @@ def test_to_xml
encode = matz.encode
xml = matz.to_xml
- assert encode, xml
+ assert_equal encode, xml
assert xml.include?('')
assert xml.include?('Matz')
assert xml.include?('1')
@@ -1030,7 +1030,7 @@ def test_to_xml_with_element_name
encode = matz.encode
xml = matz.to_xml
- assert encode, xml
+ assert_equal encode, xml
assert xml.include?('')
assert xml.include?('')
assert xml.include?('Matz')
@@ -1065,7 +1065,7 @@ def test_to_json_with_element_name
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