diff options
author | José Valim <jose.valim@gmail.com> | 2010-07-19 22:33:51 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-19 22:35:17 +0200 |
commit | c3c349ec3e9a3990cac4d256c308b18fd35d9606 (patch) | |
tree | 1e0b108921cef2e9ecfed309f01a0db22fe564d4 /actionpack/lib/action_dispatch/testing/assertions | |
parent | 17600eb435693f333af46912fd796fcdff5657b2 (diff) | |
download | rails-c3c349ec3e9a3990cac4d256c308b18fd35d9606.tar.gz rails-c3c349ec3e9a3990cac4d256c308b18fd35d9606.tar.bz2 rails-c3c349ec3e9a3990cac4d256c308b18fd35d9606.zip |
Remove assert_valid. It was already deprecated on Rails 2.3.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/model.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/model.rb b/actionpack/lib/action_dispatch/testing/assertions/model.rb deleted file mode 100644 index 46714418c6..0000000000 --- a/actionpack/lib/action_dispatch/testing/assertions/model.rb +++ /dev/null @@ -1,19 +0,0 @@ -module ActionDispatch - module Assertions - module ModelAssertions - # Ensures that the passed record is valid by Active Record standards and - # returns any error messages if it is not. - # - # ==== Examples - # - # # assert that a newly created record is valid - # model = Model.new - # assert_valid(model) - # - def assert_valid(record) - ::ActiveSupport::Deprecation.warn("assert_valid is deprecated. Use assert record.valid? instead", caller) - assert record.valid?, record.errors.full_messages.join("\n") - end - end - end -end |