From 0ee1cb2cd32bfaf47deaf5440dd5b9cf0915ab6a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 2 Oct 2007 05:32:14 +0000 Subject: Ruby 1.9 compat, consistent load paths git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activeresource/test/base_errors_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activeresource/test/base_errors_test.rb') diff --git a/activeresource/test/base_errors_test.rb b/activeresource/test/base_errors_test.rb index f9aa58016d..8706326b13 100644 --- a/activeresource/test/base_errors_test.rb +++ b/activeresource/test/base_errors_test.rb @@ -29,13 +29,13 @@ class BaseErrorsTest < Test::Unit::TestCase def test_should_iterate_over_errors errors = [] @person.errors.each { |attribute, message| errors << [attribute, message] } - assert_equal ["name", "can't be blank"], errors.first + assert errors.include?(["name", "can't be blank"]) end def test_should_iterate_over_full_errors errors = [] @person.errors.each_full { |message| errors << message } - assert_equal "Name can't be blank", errors.first + assert errors.include?("Name can't be blank") end def test_should_format_full_errors @@ -45,4 +45,4 @@ class BaseErrorsTest < Test::Unit::TestCase assert full.include?("Name must start with a letter") assert full.include?("Person quota full for today.") end -end \ No newline at end of file +end -- cgit v1.2.3