Skip to content

Commit

Permalink
Fix AP test suite after moving stuff to AV
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszx0 committed Aug 25, 2013
1 parent 75d38e4 commit 8c2c95e
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions actionpack/lib/abstract_controller.rb
Expand Up @@ -10,6 +10,7 @@ module AbstractController
autoload :Base
autoload :Callbacks
autoload :Collector
autoload :DoubleRenderError, "abstract_controller/rendering.rb"
autoload :Helpers
autoload :Logger
autoload :Translation
Expand Down
1 change: 1 addition & 0 deletions actionpack/lib/action_controller/base.rb
Expand Up @@ -201,6 +201,7 @@ def self.without_modules(*modules)
end

MODULES = [
ActionView::Layouts,
AbstractController::Translation,
AbstractController::AssetPaths,

Expand Down
4 changes: 2 additions & 2 deletions actionpack/test/abstract/abstract_controller_test.rb
Expand Up @@ -29,7 +29,7 @@ class TestBasic < ActiveSupport::TestCase
# Test Render mixin
# ====
class RenderingController < AbstractController::Base
include AbstractController::Rendering
include ActionView::Rendering

def _prefixes
[]
Expand Down Expand Up @@ -153,7 +153,7 @@ def setup
# ====
# self._layout is used when defined
class WithLayouts < PrefixedViews
include AbstractController::Layouts
include ActionView::Layouts

private
def self.layout(formats)
Expand Down
2 changes: 1 addition & 1 deletion actionpack/test/abstract/helper_test.rb
Expand Up @@ -6,7 +6,7 @@ module AbstractController
module Testing

class ControllerWithHelpers < AbstractController::Base
include AbstractController::Rendering
include ActionView::Rendering
include AbstractController::Helpers

def with_module
Expand Down
4 changes: 2 additions & 2 deletions actionpack/test/abstract/layouts_test.rb
Expand Up @@ -5,8 +5,8 @@ module Layouts

# Base controller for these tests
class Base < AbstractController::Base
include AbstractController::Rendering
include AbstractController::Layouts
include ActionView::Rendering
include ActionView::Layouts

abstract!

Expand Down
2 changes: 1 addition & 1 deletion actionpack/test/abstract/render_test.rb
Expand Up @@ -4,7 +4,7 @@ module AbstractController
module Testing

class ControllerRenderer < AbstractController::Base
include AbstractController::Rendering
include ActionView::Rendering

def _prefixes
%w[renderer]
Expand Down
1 change: 1 addition & 0 deletions actionpack/test/abstract_unit.rb
Expand Up @@ -271,6 +271,7 @@ def assert_header(name, value)
module ActionController
class Base
include ActionController::Testing
include ActionView::Layouts
# This stub emulates the Railtie including the URL helpers from a Rails application
include SharedTestRoutes.url_helpers
include SharedTestRoutes.mounted_helpers
Expand Down

0 comments on commit 8c2c95e

Please sign in to comment.