Skip to content

Commit

Permalink
escape constant names
Browse files Browse the repository at this point in the history
  • Loading branch information
tilsammans committed Aug 26, 2010
1 parent c28d46a commit 6eed7b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions actionpack/lib/action_controller/metal/responder.rb
@@ -1,7 +1,7 @@
require 'active_support/json'

module ActionController #:nodoc:
# Responder is responsible for exposing a resource to different mime requests,
# Responsible for exposing a resource to different mime requests,
# usually depending on the HTTP verb. The responder is triggered when
# <code>respond_with</code> is called. The simplest case to study is a GET request:
#
Expand All @@ -24,10 +24,10 @@ module ActionController #:nodoc:
#
# === Builtin HTTP verb semantics
#
# The default Rails responder holds semantics for each HTTP verb. Depending on the
# The default \Rails responder holds semantics for each HTTP verb. Depending on the
# content type, verb and the resource status, it will behave differently.
#
# Using Rails default responder, a POST request for creating an object could
# Using \Rails default responder, a POST request for creating an object could
# be written as:
#
# def create
Expand Down Expand Up @@ -140,7 +140,7 @@ def to_format

protected

# This is the common behavior for "navigation" requests, like :html, :iphone and so forth.
# This is the common behavior for formats associated with browsing, like :html, :iphone and so forth.
def navigation_behavior(error)
if get?
raise error
Expand All @@ -151,7 +151,7 @@ def navigation_behavior(error)
end
end

# This is the common behavior for "API" requests, like :xml and :json.
# This is the common behavior for formats associated with APIs, such as :xml and :json.
def api_behavior(error)
raise error unless resourceful?

Expand Down
8 changes: 4 additions & 4 deletions actionpack/lib/action_controller/test_case.rb
Expand Up @@ -245,7 +245,7 @@ def exists?; true; end
# after calling +post+. If the various assert methods are not sufficient, then you
# may use this object to inspect the HTTP response in detail.
#
# (Earlier versions of Rails required each functional test to subclass
# (Earlier versions of \Rails required each functional test to subclass
# Test::Unit::TestCase and define @controller, @request, @response in +setup+.)
#
# == Controller is automatically inferred
Expand All @@ -258,15 +258,15 @@ def exists?; true; end
# tests WidgetController
# end
#
# == Testing controller internals
# == \Testing controller internals
#
# In addition to these specific assertions, you also have easy access to various collections that the regular test/unit assertions
# can be used against. These collections are:
#
# * assigns: Instance variables assigned in the action that are available for the view.
# * session: Objects being saved in the session.
# * flash: The flash objects currently in the session.
# * cookies: Cookies being sent to the user on this request.
# * cookies: \Cookies being sent to the user on this request.
#
# These collections can be used just like any other hash:
#
Expand All @@ -292,7 +292,7 @@ def exists?; true; end
# @request.session[:key] = "value"
# @request.cookies["key"] = "value"
#
# == Testing named routes
# == \Testing named routes
#
# If you're using named routes, they can be easily tested using the original named routes' methods straight in the test case.
# Example:
Expand Down

0 comments on commit 6eed7b3

Please sign in to comment.