aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/base_errors_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/test/base_errors_test.rb')
-rw-r--r--activeresource/test/base_errors_test.rb6
1 files changed, 3 insertions, 3 deletions
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