diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-09 11:58:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-10 10:13:21 -0700 |
commit | 23122ab2d4e239d35a154d5ec28c2afefdd012de (patch) | |
tree | c9a18515548b8e8a50deefd83dd8db5e1c12818d /activemodel/test/cases | |
parent | cc0fd31f9e8b62ec650766f02a0c8ec5f0b37a10 (diff) | |
download | rails-23122ab2d4e239d35a154d5ec28c2afefdd012de.tar.gz rails-23122ab2d4e239d35a154d5ec28c2afefdd012de.tar.bz2 rails-23122ab2d4e239d35a154d5ec28c2afefdd012de.zip |
callbacks are wrapped with lambdas
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r-- | activemodel/test/cases/validations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/validations_test.rb b/activemodel/test/cases/validations_test.rb index 3241a03b53..3e84297cc2 100644 --- a/activemodel/test/cases/validations_test.rb +++ b/activemodel/test/cases/validations_test.rb @@ -166,7 +166,7 @@ class ValidationsTest < ActiveModel::TestCase def test_invalid_validator Topic.validate :i_dont_exist - assert_raise(NameError) do + assert_raises(NoMethodError) do t = Topic.new t.valid? end |