Permalink
Browse files

Merge pull request #7760 from alindeman/adds_missing_dependency_to_ac…

…tion_view_test_case

Adds missing dependency to ActionView::TestCase::Behavior
  • Loading branch information...
2 parents c131211 + ba34110 commit 1b73dbd36fc5bd2d8ae015a16b2376250ab19b4e @spastorino spastorino committed Sep 27, 2012
@@ -20,6 +20,7 @@ class TestCase < ActiveSupport::TestCase
module Behavior
extend ActiveSupport::Concern
+ include ActiveSupport::Testing::ConstantLookup
include TestHelper
included do
@@ -356,6 +356,7 @@ class TestCase < ActiveSupport::TestCase
module Behavior
extend ActiveSupport::Concern
include ActionDispatch::TestProcess
+ include ActiveSupport::Testing::ConstantLookup
attr_reader :response, :request
@@ -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
@@ -38,7 +38,6 @@ def self.test_order # :nodoc:
include ActiveSupport::Testing::SetupAndTeardown
include ActiveSupport::Testing::Assertions
include ActiveSupport::Testing::Deprecation
- include ActiveSupport::Testing::ConstantLookup
def self.describe(text)
if block_given?
@@ -9,6 +9,7 @@ class Baz < Bar; end
module FooBar; end
class ConstantLookupTest < ActiveSupport::TestCase
+ include ActiveSupport::Testing::ConstantLookup
def find_foo(name)
self.class.determine_constant_from_test_name(name) do |constant|

0 comments on commit 1b73dbd

Please sign in to comment.