aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorlulalala <mark@goodlife.tw>2018-12-26 22:36:02 +0800
committerlulalala <mark@goodlife.tw>2019-03-31 22:59:12 +0800
commit90815b12c51284b497d55ef52ce4e962f5d33f7f (patch)
treecf4b22ef15294b420c262bf288639c33bc8bbf64 /activemodel
parent23dd7c0285fb81a675f8e18ee3be60397060655d (diff)
downloadrails-90815b12c51284b497d55ef52ce4e962f5d33f7f.tar.gz
rails-90815b12c51284b497d55ef52ce4e962f5d33f7f.tar.bz2
rails-90815b12c51284b497d55ef52ce4e962f5d33f7f.zip
Fix spec
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/lint.rb2
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