提交 1b73dbd3 编写于 作者: S Santiago Pastorino

Merge pull request #7760 from alindeman/adds_missing_dependency_to_action_view_test_case

Adds missing dependency to ActionView::TestCase::Behavior
......@@ -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|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册