Browse files

Adds missing dependency to ActionView::TestCase::Behavior

* The module is needed for the `determine_constant_from_test_name`
* 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 c0a2455
  • Loading branch information...
1 parent c131211 commit abfcdc65d96268b889a81b5fe55e4ce3b8cd5b7f @alindeman alindeman committed Sep 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_view/test_case.rb
@@ -47,6 +47,8 @@ module Behavior
include ActionView::RecordIdentifier
include ActionView::RoutingUrlFor
+ include ActiveSupport::Testing::ConstantLookup
delegate :lookup_context, :to => :controller
attr_accessor :controller, :output_buffer, :rendered

0 comments on commit abfcdc6

Please sign in to comment.