diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-05 11:47:10 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-05 11:48:06 -0600 |
commit | 8ff4faf66a332b24d1a82a4e62daeabc06945dcf (patch) | |
tree | 5e23fe735c8e12ba508ef3af40db7368b27c612f /actionpack/lib/action_dispatch | |
parent | 2dc5aeed6d73fb7c68bdfb675e025747a341697a (diff) | |
download | rails-8ff4faf66a332b24d1a82a4e62daeabc06945dcf.tar.gz rails-8ff4faf66a332b24d1a82a4e62daeabc06945dcf.tar.bz2 rails-8ff4faf66a332b24d1a82a4e62daeabc06945dcf.zip |
assert_template depends on AV::Template monkey patches in action_view/test_case
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/response.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb index 5686bbdbde..c2486d3730 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/response.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb @@ -2,6 +2,15 @@ module ActionDispatch module Assertions # A small suite of assertions that test responses from Rails applications. module ResponseAssertions + extend ActiveSupport::Concern + + included do + # TODO: Need to pull in AV::Template monkey patches that track which + # templates are rendered. assert_template should probably be part + # of AV instead of AD. + require 'action_view/test_case' + end + # Asserts that the response is one of the following types: # # * <tt>:success</tt> - Status code was 200 |