diff options
author | lulalala <mark@goodlife.tw> | 2018-12-26 22:36:02 +0800 |
---|---|---|
committer | lulalala <mark@goodlife.tw> | 2019-03-31 22:59:12 +0800 |
commit | 90815b12c51284b497d55ef52ce4e962f5d33f7f (patch) | |
tree | cf4b22ef15294b420c262bf288639c33bc8bbf64 /activemodel/lib | |
parent | 23dd7c0285fb81a675f8e18ee3be60397060655d (diff) | |
download | rails-90815b12c51284b497d55ef52ce4e962f5d33f7f.tar.gz rails-90815b12c51284b497d55ef52ce4e962f5d33f7f.tar.bz2 rails-90815b12c51284b497d55ef52ce4e962f5d33f7f.zip |
Fix spec
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/lint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb index b7ceabb59a..f9bfed95f1 100644 --- a/activemodel/lib/active_model/lint.rb +++ b/activemodel/lib/active_model/lint.rb @@ -101,7 +101,7 @@ module ActiveModel # locale. If no error is present, the method should return an empty array. def test_errors_aref assert_respond_to model, :errors - assert model.errors[:hello].is_a?(Array), "errors#[] should return an Array" + assert_equal [], model.errors[:hello], "errors#[] should return an empty Array" end private |