public
Description: response for lets you decorate your actions respond_to blocks
Homepage: http://blog.ardes.com/response_for
Clone URL: git://github.com/ianwhite/response_for.git
Click here to lend your support to: response_for and make a donation at www.pledgie.com !
Added edge SPEDOC
ianwhite (author)
Wed Apr 30 08:43:11 -0700 2008
commit  8ab63ae5dcbff171a619e5a7c9e2bfe29fcc9085
tree    1a55301935b67b6ee4025d2e603e5f3b92dd6ee8
parent  3743e5ba71c47e4256649e631318bd3c45d78a1c
...
1
2
 
3
4
5
6
7
8
9
10
 
11
12
13
 
14
15
16
17
18
19
20
 
 
 
 
 
 
 
 
21
22
23
24
25
26
 
27
28
29
30
31
32
33
34
 
35
36
37
38
39
40
41
 
42
43
44
45
46
47
48
 
49
50
 
...
1
 
2
3
4
 
 
 
 
 
 
5
6
7
 
8
9
10
11
12
13
 
 
14
15
16
17
18
19
20
21
22
23
24
25
26
 
27
28
29
30
31
32
 
33
 
34
35
36
37
38
39
40
 
41
42
43
44
45
46
47
 
48
49
 
50
0
@@ -1,50 +1,50 @@
0
 
0
-BackToFooController:
0
+BackToFooController
0
 - get :foo, :format => 'xml' should not render foo
0
 
0
-DefaultRespondToController behaviour of #respond_to:
0
-- get :foo should not call first
0
-- get :foo should not call second
0
-- get :foo should call third
0
-
0
-FooBailOutController:
0
+FooBailOutController
0
 - get :foo, :bail_out => true should redirect
0
 
0
-FooController:
0
+FooController
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
 
0
-InlineXmlFooController:
0
-- get :foo should render text/html 'foo'
0
+FooAController
0
+- get :foo should call a
0
+- get :baz should call bazza (inside the response_for block)
0
+
0
+FooBController
0
+- get :foo should call b
0
+
0
+InlineXmlFooController
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
 
0
-XmlFooController:
0
+XmlFooController
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 :just_a_template, :format => 'xml' should render just_a_template
0
 
0
-XmlOnlyFooController:
0
+XmlOnlyFooController
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
 
0
-class method #action_responses:
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
 
0
-Finished in 0.236473 seconds
0
+Finished in 0.328216 seconds
0
 
0
-30 examples, 0 failures
0
+28 examples, 0 failures

Comments