0
-- get :foo, :format => 'xml' should not render foo
0
-- get :foo, :bail_out => true should redirect
0
-- get :foo should render text/html: foo
0
-- get :foo should assign @foo
0
-- get :foo, :format => 'html' should render foo
0
-- get :foo, :format => 'xml' should not render foo
0
-- get :foo should call a
0
-- get :baz should call bazza (inside the response_for block)
0
-- get :foo should call b
0
-- get :foo should assign @foo
0
-- get :foo, :format => 'html' should render 'foo'
0
-- get :foo, :format => 'xml' should call xml_call with 'foo
0
-- get :foo, :format => 'xml' should have response.body of 'XML'
0
-- get :foo should render foo
0
-- get :foo should assign @foo
0
-- get :foo, :format => 'html' should render foo
0
-- get :foo, :format => 'xml' should render foo
0
-- get :bar, :format => 'xml' should render bar
0
-- get :foo should render xml: foo
0
-- get :bar should render xml: bar
0
-- get :foo should assign @foo
0
-- get :foo, :format => 'html' should not render foo
0
-- get :foo, :format => 'xml' should render foo
0
-class method #action_responses
0
-- @child.action_responses[:action] should be copy of parent's action response for :action
0
-- @grandchild.action_responses[:action] should be copy of @child.action_responses[:action]
0
-- @child.action_responses[:action] not be same object as parent's action response for :action
0
-- @grandchild.action_responses[:action] not be same object as @child.action_responses[:action]
0
-- adding to @grandchild.action_responses[:action] should not change parents
0
-Finished in 0.328216 seconds
0
-28 examples, 0 failures
0
+DefaultRailsBehaviourSpec::TheController GET :two_respond_tos
0
+- should recieve first and second in order
0
+DefaultRailsBehaviourSpec::TheController GET :two_responses
0
+- should only receive first and NOT second
0
+- SuperController.action_responses should not == SubController.action_responses
0
+- SuperController should have one action_response for 'a_response'
0
+- SubController should have two action_responses for 'a_response', and one each for 'an_action', and 'performing_action'
0
+InheritedControllerSpec::SuperController GET :an_action
0
+- should execute action
0
+- should render :an_action
0
+InheritedControllerSpec::SuperController GET :a_response
0
+- should execute inside the super response block
0
+- should NOT execute inside the sub response block
0
+InheritedControllerSpec::SuperController GET :performing_action
0
+InheritedControllerSpec::SubController GET :an_action (decorated with redirecting response_for)
0
+- should execute action
0
+InheritedControllerSpec::SubController GET :a_response (decorated with a new response)
0
+- should NOT execute the super response
0
+- should execute the sub response
0
+InheritedControllerSpec::SubController GET :performing_action
0
+- should NOT execute the sub response
0
+- should redirect as per the super def
0
+NoResponseIfPerformedSpec::TheController when before_filter redirects, GET :an_action
0
+- should redirect to 'http://redirected.from.before_filter'
0
+- should not execute inside response_for
0
+NoResponseIfPerformedSpec::TheController when before_filter doesn't redirect, GET :an_action
0
+- should execute inside response for
0
+- should render :an_action
0
+Picking template PickTemplateSpec::TemplateOnlyController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should IGNORE and render an_action.html
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::RespondToTypesController
0
+- GET :an_action, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::RespondToTypesController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should render an_action.xml
0
+- text/javascript, should render an_action.js
0
+- application/atom+xml, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::RespondToTypesController GET :an_action, :format =>
0
+- :html, should render an_action.html
0
+- :js, should render an_action.js
0
+- :xml, should render an_action.xml
0
+- :atom, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::RespondToBlockController
0
+- GET :an_action, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::RespondToBlockController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should render an_action.xml
0
+- text/javascript, should render an_action.js
0
+- application/atom+xml, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::RespondToBlockController GET :an_action, :format =>
0
+- :html, should render an_action.html
0
+- :js, should render an_action.js
0
+- :xml, should render an_action.xml
0
+- :atom, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForTypesController
0
+- GET :an_action, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForTypesController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should render an_action.xml
0
+- text/javascript, should render an_action.js
0
+- application/atom+xml, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForTypesController GET :an_action, :format =>
0
+- :html, should render an_action.html
0
+- :js, should render an_action.js
0
+- :xml, should render an_action.xml
0
+- :atom, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForBlockController
0
+- GET :an_action, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForBlockController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should render an_action.xml
0
+- text/javascript, should render an_action.js
0
+- application/atom+xml, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForBlockController GET :an_action, :format =>
0
+- :html, should render an_action.html
0
+- :js, should render an_action.js
0
+- :xml, should render an_action.xml
0
+- :atom, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForMixOfBlockAndTypesController
0
+- GET :an_action, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForMixOfBlockAndTypesController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should render an_action.xml
0
+- text/javascript, should render an_action.js
0
+- application/atom+xml, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::ResponseForMixOfBlockAndTypesController GET :an_action, :format =>
0
+- :html, should render an_action.html
0
+- :js, should render an_action.js
0
+- :xml, should render an_action.xml
0
+- :atom, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::InheritedController
0
+- GET :an_action, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::InheritedController GET :an_action, HTTP_ACCEPT =
0
+- text/html, should render an_action.html
0
+- application/xml, should render an_action.xml
0
+- text/javascript, should render an_action.js
0
+- application/atom+xml, should render an_action.atom
0
+Picking template [:atom, :xml, :html, :js] PickTemplateSpec::InheritedController GET :an_action, :format =>
0
+- :html, should render an_action.html
0
+- :js, should render an_action.js
0
+- :xml, should render an_action.xml
0
+- :atom, should render an_action.atom
0
+RemoveResponseForSpec::TheController
0
+- should have action_responses for :foo and :bar
0
+RemoveResponseForSpec::TheController.remove_response_for :bar
0
+- should hanve action_responses for :foo
0
+RemoveResponseForSpec::TheController.remove_response_for
0
+- should have empty action_responses
0
+Finished in 0.451715 seconds
0
+79 examples, 0 failures