aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases
diff options
context:
space:
mode:
authorEugene Gilburg <eugene.gilburg@gmail.com>2015-01-23 14:36:43 -0800
committerEugene Gilburg <eugene.gilburg@gmail.com>2015-01-23 14:42:47 -0800
commit5bdb42159ec461d678652319da14b4a59bfafd27 (patch)
tree6b45ce49afbceb3297ca6eb2a559ad8d461a9ddf /activemodel/test/cases
parent8c83bd0732fc526e69cd5c348cb9d9842ae60c99 (diff)
downloadrails-5bdb42159ec461d678652319da14b4a59bfafd27.tar.gz
rails-5bdb42159ec461d678652319da14b4a59bfafd27.tar.bz2
rails-5bdb42159ec461d678652319da14b4a59bfafd27.zip
use attribute assignment module logic during active model initialization
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r--activemodel/test/cases/model_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activemodel/test/cases/model_test.rb b/activemodel/test/cases/model_test.rb
index ee0fa26546..9a8d873ec9 100644
--- a/activemodel/test/cases/model_test.rb
+++ b/activemodel/test/cases/model_test.rb
@@ -70,6 +70,8 @@ class ModelTest < ActiveModel::TestCase
end
def test_mixin_initializer_when_args_dont_exist
- assert_raises(NoMethodError) { SimpleModel.new(hello: 'world') }
+ assert_raises(ActiveModel::AttributeAssignment::UnknownAttributeError) do
+ SimpleModel.new(hello: 'world')
+ end
end
end