Skip to content

Commit 1b73dbd

Browse files
committed
Merge pull request rails#7760 from alindeman/adds_missing_dependency_to_action_view_test_case
Adds missing dependency to ActionView::TestCase::Behavior
2 parents c131211 + ba34110 commit 1b73dbd

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

actionmailer/lib/action_mailer/test_case.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class TestCase < ActiveSupport::TestCase
2020
module Behavior
2121
extend ActiveSupport::Concern
2222

23+
include ActiveSupport::Testing::ConstantLookup
2324
include TestHelper
2425

2526
included do

actionpack/lib/action_controller/test_case.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ class TestCase < ActiveSupport::TestCase
356356
module Behavior
357357
extend ActiveSupport::Concern
358358
include ActionDispatch::TestProcess
359+
include ActiveSupport::Testing::ConstantLookup
359360

360361
attr_reader :response, :request
361362

actionpack/lib/action_view/test_case.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ module Behavior
4747
include ActionView::RecordIdentifier
4848
include ActionView::RoutingUrlFor
4949

50+
include ActiveSupport::Testing::ConstantLookup
51+
5052
delegate :lookup_context, :to => :controller
5153
attr_accessor :controller, :output_buffer, :rendered
5254

activesupport/lib/active_support/test_case.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def self.test_order # :nodoc:
3838
include ActiveSupport::Testing::SetupAndTeardown
3939
include ActiveSupport::Testing::Assertions
4040
include ActiveSupport::Testing::Deprecation
41-
include ActiveSupport::Testing::ConstantLookup
4241

4342
def self.describe(text)
4443
if block_given?

activesupport/test/testing/constant_lookup_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Baz < Bar; end
99
module FooBar; end
1010

1111
class ConstantLookupTest < ActiveSupport::TestCase
12+
include ActiveSupport::Testing::ConstantLookup
1213

1314
def find_foo(name)
1415
self.class.determine_constant_from_test_name(name) do |constant|

0 commit comments

Comments
 (0)