diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-04-30 11:40:29 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-04-30 11:42:01 -0500 |
commit | 988513ac7a0cbd820c9486088256b8ab4e8acf74 (patch) | |
tree | cd1ed4bc53db835d7fe70f4a996d7e878663f10d /actionpack/lib/action_controller/testing/assertions/model.rb | |
parent | 79420e71e0e75d6f81e5284184bac4e7d0b02c30 (diff) | |
download | rails-988513ac7a0cbd820c9486088256b8ab4e8acf74.tar.gz rails-988513ac7a0cbd820c9486088256b8ab4e8acf74.tar.bz2 rails-988513ac7a0cbd820c9486088256b8ab4e8acf74.zip |
Framework backtrace cleaning is handled by ActiveSupport now
Diffstat (limited to 'actionpack/lib/action_controller/testing/assertions/model.rb')
-rw-r--r-- | actionpack/lib/action_controller/testing/assertions/model.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/testing/assertions/model.rb b/actionpack/lib/action_controller/testing/assertions/model.rb index 3a7b39b106..93e3bcf456 100644 --- a/actionpack/lib/action_controller/testing/assertions/model.rb +++ b/actionpack/lib/action_controller/testing/assertions/model.rb @@ -12,9 +12,7 @@ module ActionController # def assert_valid(record) ::ActiveSupport::Deprecation.warn("assert_valid is deprecated. Use assert record.valid? instead", caller) - clean_backtrace do - assert record.valid?, record.errors.full_messages.join("\n") - end + assert record.valid?, record.errors.full_messages.join("\n") end end end |