diff options
author | José Valim <jose.valim@gmail.com> | 2012-02-07 23:10:14 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-02-07 23:10:43 +0100 |
commit | a17d047a735e7de973f4fc340d05123524ff6d70 (patch) | |
tree | bb419529b3551c683b0e31b50988073ae01494f0 /activemodel/test | |
parent | 827b520bd1f946471105d9dd9593b9db56b0f6bc (diff) | |
download | rails-a17d047a735e7de973f4fc340d05123524ff6d70.tar.gz rails-a17d047a735e7de973f4fc340d05123524ff6d70.tar.bz2 rails-a17d047a735e7de973f4fc340d05123524ff6d70.zip |
Trim down Active Model API by removing valid? and errors.full_messages
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/lint_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activemodel/test/cases/lint_test.rb b/activemodel/test/cases/lint_test.rb index 68372160cd..8faf93c056 100644 --- a/activemodel/test/cases/lint_test.rb +++ b/activemodel/test/cases/lint_test.rb @@ -7,14 +7,10 @@ class LintTest < ActiveModel::TestCase extend ActiveModel::Naming include ActiveModel::Conversion - def valid?() true end def persisted?() false end def errors - obj = Object.new - def obj.[](key) [] end - def obj.full_messages() [] end - obj + Hash.new([]) end end |