diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 12:04:18 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 12:04:18 -0700 |
commit | e8e7d8357c5f641842f5c4730396fae4d423723a (patch) | |
tree | 791e0baf8624418851e2c7fea52f87ad85bcaafd /activemodel/test | |
parent | 8ce3c1e5dde9fb180813e4d89324db03da110b13 (diff) | |
parent | 78202055c971659689f6a96a5b4aa2c138cb44d2 (diff) | |
download | rails-e8e7d8357c5f641842f5c4730396fae4d423723a.tar.gz rails-e8e7d8357c5f641842f5c4730396fae4d423723a.tar.bz2 rails-e8e7d8357c5f641842f5c4730396fae4d423723a.zip |
Merge branch 'polymorphic'
* polymorphic: (41 commits)
fix shadowed variable warnings
polymorphic around callbacks
polymorphic after filter
rename terminal to halting, try to keep naming consistent
push the before filter lambdas to factory methods
polymorphic before callbacks
use a singleton end node
Revert "we never pass blocks, so remove this"
if there is nothing to compile, then do not bother compiling
Arrays are no longer supported
we never pass blocks, so remove this
raise an argument error if the filter arity is greater than 1
pass the actual filter, not a string
do not keep a reference to the chain in the callback objects
fix deprecation test
push merge code to the callback itself
dup the callback and set the chain
remove klass because it is not used
rename instance variables
push duplicates? logic to the instance
...
Diffstat (limited to 'activemodel/test')
-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 |