jastix (owner)

Revisions

gist: 194340 Download_button fork
public
Public Clone URL: git://gist.github.com/194340.git
Embed All Files: show embed
Ruby #
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
(in /home/jastix/sources/rails/github/rails/actionpack)
Loaded suite /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...........................................E...................................
...............................................................................
...............................................................................
......................................................FFFEFFFF.................
......................................FFFFFFFFFF.................FFFFFFF.......
...............................................................................
...............................................................................
..............................FF.F.............................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
......E...E...................EEEEEE.....E.....EE..........EE..................
.................F....F.............................F.FFFFFFFFFFF..............
...............................................................................
........................................FFFFFFFFFFFFFFFFFFFFFF.................
.....FFFFFFFFFFFF..............................................................
..................................................FFFFFFFFFFFFFFFFF............
.............................................................E.................
...............................................................................
.............................................................E..E...E..........
...................................................E.......E...................
...............................................................................
....................................................P...........................
..................................................................EE...........
...............................................................................
..............................................................E................
...............................................................................
.........................................................................
 
Finished in 36.945854499 seconds.
 
  1) Error:
test_when_the_layout_is_specified_as_a_symbol_and_the_method_doesn't_exist,_raise_an_exception(AbstractControllerTests::Layouts::TestBase):
TypeError: compared with non class/module
test/abstract/layouts_test.rb:186:in `block in <class:TestBase>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run'
 
2) Failure:
test_rendering_with_layout_=>_'greetings'(Both <controller_path>.html.erb and application.html.erb are missing)
[test/new_base/render_action_test.rb:109:in `block in <class:RenderLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<ActionView::MissingTemplate> exception expected but was
Class: <ActionController::RoutingError>
Message: <"No route matches \"/render_action/basic/hello_world_with_custom_layout\" with {:method=>:get}">
---Backtrace---
/home/jastix/sources/rails/github/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:66:in `recognize_path'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_controller/routing/route_set.rb:444:in `recognize'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_controller/routing/route_set.rb:439:in `call'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-1.0.0/lib/rack/head.rb:9:in `call'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-1.0.0/lib/rack/methodoverride.rb:24:in `call'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/middleware/params_parser.rb:19:in `call'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/new_callbacks.rb:424:in `_run_call_callbacks'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-1.0.0/lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:8:in `synchronize'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-1.0.0/lib/rack/lock.rb:11:in `call'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-test-0.5.0/lib/rack/mock_session.rb:30:in `request'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-test-0.5.0/lib/rack/test.rb:207:in `process_request'
/home/jastix/sources/rails/github/rails/actionpack/vendor/gems/gems/rack-test-0.5.0/lib/rack/test.rb:105:in `request'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/testing/integration.rb:277:in `block in process'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/testing/integration.rb:321:in `capture_instantiation'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/testing/integration.rb:276:in `process'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/testing/integration.rb:33:in `get'
/home/jastix/sources/rails/github/rails/actionpack/lib/action_dispatch/testing/integration.rb:340:in `block (2 levels) in <module:Runner>'
/home/jastix/sources/rails/github/rails/actionpack/test/abstract_unit.rb:88:in `get'
test/new_base/render_action_test.rb:110:in `block (2 levels) in <class:RenderLayoutTest>'
test/new_base/render_action_test.rb:109:in `block in <class:RenderLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run'
---------------
 
3) Failure:
test_rendering_with_layout_=>_:nil(Both <controller_path>.html.erb and application.html.erb are missing)
[/home/jastix/sources/rails/github/rails/actionpack/test/abstract_unit.rb:93:in `assert_body'
test/new_base/render_action_test.rb:104:in `block in <class:RenderLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<"Hello world!"> expected but was
<"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>Action Controller: Exception caught</title>\n <style>\n body { background-color: #fff; color: #333; }\n\n body, p, ol, ul, td {\n font-family: verdana, arial, helvetica, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n pre {\n background-color: #eee;\n padding: 10px;\n font-size: 11px;\n }\n\n a { color: #000; }\n a:visited { color: #666; }\n a:hover { color: #fff; background-color:#000; }\n </style>\n</head>\n<body>\n\n<h1>Routing Error</h1>\n<p><pre>No route matches &quot;/render_action/basic/hello_world_with_layout_nil&quot; with {:method=&gt;:get}</pre></p>\n\n\n\n</body>\n</html>\n">.
 
4) Failure:
test_rendering_with_layout_=>_false(Both <controller_path>.html.erb and application.html.erb are missing)
[/home/jastix/sources/rails/github/rails/actionpack/test/abstract_unit.rb:93:in `assert_body'
test/new_base/render_action_test.rb:97:in `block in <class:RenderLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<"Hello world!"> expected but was
<"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>Action Controller: Exception caught</title>\n <style>\n body { background-color: #fff; color: #333; }\n\n body, p, ol, ul, td {\n font-family: verdana, arial, helvetica, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n pre {\n background-color: #eee;\n padding: 10px;\n font-size: 11px;\n }\n\n a { color: #000; }\n a:visited { color: #666; }\n a:hover { color: #fff; background-color:#000; }\n </style>\n</head>\n<body>\n\n<h1>Routing Error</h1>\n<p><pre>No route matches &quot;/render_action/basic/hello_world_with_layout_false&quot; with {:method=&gt;:get}</pre></p>\n\n\n\n</body>\n</html>\n">.
 
5) Error:
test_rendering_with_layout_=>_true(Both <controller_path>.html.erb and application.html.erb are missing):
TypeError: compared with non class/module
test/new_base/render_action_test.rb:89:in `block in <class:RenderLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run'
 
  6) Failure:
test_rendering_implicitly_use_<controller_path>.html.erb_over_application.html.erb_as_a_layout(Both <controller_path>.html.erb and application.html.erb are present)
    [/home/jastix/sources/rails/github/rails/actionpack/test/abstract_unit.rb:93:in `assert_body'
test/new_base/render_action_test.rb:295:in `block in <class:ControllerLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<"With Controller Layout! Hello World! KTHXBAI"> expected but was
<"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>Action Controller: Exception caught</title>\n <style>\n body { background-color: #fff; color: #333; }\n\n body, p, ol, ul, td {\n font-family: verdana, arial, helvetica, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n pre {\n background-color: #eee;\n padding: 10px;\n font-size: 11px;\n }\n\n a { color: #000; }\n a:visited { color: #666; }\n a:hover { color: #fff; background-color:#000; }\n </style>\n</head>\n<body>\n\n<h1>Routing Error</h1>\n<p><pre>No route matches &quot;/render_action_with_both_layouts/basic/hello_world&quot; with {:method=&gt;:get}</pre></p>\n\n\n\n</body>\n</html>\n">.
 
  7) Failure:
test_rendering_with_layout_=>_:nil(Both <controller_path>.html.erb and application.html.erb are present)
    [/home/jastix/sources/rails/github/rails/actionpack/test/abstract_unit.rb:93:in `assert_body'
test/new_base/render_action_test.rb:316:in `block in <class:ControllerLayoutTest>'
/home/jastix/sources/rails/github/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run']:
<"Hello World!"> expected but was
<"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <title>Action Controller: Exception caught</title>\n <style>\n body { background-color: #fff; color: #333; }\n\n body, p, ol, ul, td {\n font-family: verdana, arial, helvetica, sans-serif;\n font-size: 13px;\n line-height: 18px;\n }\n\n pre {\n background-color: #eee;\n padding: 10px;\n font-size: 11px;\n }\n\n a { color: #000; }\n a:visited { color: #666; }\n a:hover { color: #fff; background-color:#000; }\n </style>\n</head>\n<body>\n\n<h1>Routing Error</h1>\n<p><pre>No route matches &quot;/render_action_with_both_layouts/basic/hello_world_with_layout_nil&quot; with {:method=&gt;:get}</pre></p>\n\n\n\n</body>\n</html>\n">.
 
  8) Failure:
test_rendering_with_layout_=>_false(Both <controller_path>.html.erb and application.html.erb are present)
    [/home/jastix/sources/rails/github/rails/actionpack/test/abstract_unit.rb:93:in `assert_body'