diff options
Diffstat (limited to 'activeresource/test')
-rw-r--r-- | activeresource/test/base_errors_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activeresource/test/base_errors_test.rb b/activeresource/test/base_errors_test.rb index 517babd16b..8c177c8006 100644 --- a/activeresource/test/base_errors_test.rb +++ b/activeresource/test/base_errors_test.rb @@ -21,9 +21,9 @@ class BaseErrorsTest < Test::Unit::TestCase def test_should_parse_errors_to_individual_attributes assert @person.errors.invalid?(:name) - assert_equal "can't be blank", @person.errors.on(:age) + assert_equal ["can't be blank"], @person.errors[:age] assert_equal ["can't be blank", "must start with a letter"], @person.errors[:name] - assert_equal "Person quota full for today.", @person.errors.on_base + assert_equal ["Person quota full for today."], @person.errors[:base] end def test_should_iterate_over_errors |