diff options
author | Andy Lindeman <alindeman@gmail.com> | 2012-09-25 17:39:29 -0400 |
---|---|---|
committer | Andy Lindeman <alindeman@gmail.com> | 2012-09-26 23:21:26 -0400 |
commit | abfcdc65d96268b889a81b5fe55e4ce3b8cd5b7f (patch) | |
tree | 101c7795d793e0acb45a5f2ac24bea49c484e786 /actionpack | |
parent | c131211c679ce227f4ba68e1b5f3db5ae0e2bdb6 (diff) | |
download | rails-abfcdc65d96268b889a81b5fe55e4ce3b8cd5b7f.tar.gz rails-abfcdc65d96268b889a81b5fe55e4ce3b8cd5b7f.tar.bz2 rails-abfcdc65d96268b889a81b5fe55e4ce3b8cd5b7f.zip |
Adds missing dependency to ActionView::TestCase::Behavior
* The module is needed for the `determine_constant_from_test_name`
method.
* Without it, the including class is required to also include
`ActiveSupport::Testing::ConstantLookup` or a `NoMethodError` will be
raised upon instantiation of that class.
* Issue introduced in c0a24555f9e2749fb94efe1967cb9943db0b6a7e
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/test_case.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/test_case.rb b/actionpack/lib/action_view/test_case.rb index a4e8068026..04073c73cc 100644 --- a/actionpack/lib/action_view/test_case.rb +++ b/actionpack/lib/action_view/test_case.rb @@ -47,6 +47,8 @@ module ActionView include ActionView::RecordIdentifier include ActionView::RoutingUrlFor + include ActiveSupport::Testing::ConstantLookup + delegate :lookup_context, :to => :controller attr_accessor :controller, :output_buffer, :rendered |