Skip to content

Commit

Permalink
Remove BasicRendering tests
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Sep 9, 2013
1 parent 67336ce commit 1385ae1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 72 deletions.
10 changes: 1 addition & 9 deletions actionpack/lib/abstract_controller/rendering.rb
Expand Up @@ -10,14 +10,6 @@ def initialize(message = nil)
end
end

class UnsupportedOperationError < Error
DEFAULT_MESSAGE = "Unsupported render operation. BasicRendering supports only :text and :nothing options. For more, you need to include ActionView."

def initialize
super DEFAULT_MESSAGE
end
end

module Rendering
extend ActiveSupport::Concern

Expand Down Expand Up @@ -55,7 +47,7 @@ def render_to_string(*args, &block)
# Performs the actual template rendering.
# :api: public
def render_to_body(options = {})
raise UnsupportedOperationError
raise NotImplementedError, "no render operation defined"
end

# Return Content-Type of rendered content
Expand Down
1 change: 0 additions & 1 deletion actionpack/lib/action_controller.rb
Expand Up @@ -13,7 +13,6 @@ module ActionController
autoload :Middleware

autoload_under "metal" do
autoload :BasicRendering, 'action_controller/metal/rendering'
autoload :Compatibility
autoload :ConditionalGet
autoload :Cookies
Expand Down
62 changes: 0 additions & 62 deletions railties/test/application/basic_rendering_test.rb

This file was deleted.

0 comments on commit 1385ae1

Please sign in to comment.