diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-19 23:45:08 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-19 23:45:08 +0000 |
commit | 77acfefedf80a2c30f8a0f71b5b6d33d1b9fd144 (patch) | |
tree | 8ee169fa9dc6cd1dcc9e221e196dd0665234d78f /activeresource/test | |
parent | 638333b7a17234ed65b2e8b0bee3d9b533446803 (diff) | |
download | rails-77acfefedf80a2c30f8a0f71b5b6d33d1b9fd144.tar.gz rails-77acfefedf80a2c30f8a0f71b5b6d33d1b9fd144.tar.bz2 rails-77acfefedf80a2c30f8a0f71b5b6d33d1b9fd144.zip |
Make Active Resource use ActiveModel::Errors
Diffstat (limited to 'activeresource/test')
-rw-r--r-- | activeresource/test/base_errors_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/test/base_errors_test.rb b/activeresource/test/base_errors_test.rb index 7ae92c7d98..517babd16b 100644 --- a/activeresource/test/base_errors_test.rb +++ b/activeresource/test/base_errors_test.rb @@ -28,7 +28,7 @@ class BaseErrorsTest < Test::Unit::TestCase def test_should_iterate_over_errors errors = [] - @person.errors.each { |attribute, message| errors << [attribute, message] } + @person.errors.each { |attribute, message| errors << [attribute.to_s, message] } assert errors.include?(["name", "can't be blank"]) end |