rails_tasks 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/rails_tasks/version.rb +3 -0
  6. data/lib/rails_tasks.rb +40 -0
  7. data/lib/tasks/rails_tasks_tasks.rake +4 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/javascripts/inner.js +2 -0
  12. data/test/dummy/app/assets/javascripts/outer.js +2 -0
  13. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  14. data/test/dummy/app/assets/stylesheets/inner.css +4 -0
  15. data/test/dummy/app/assets/stylesheets/outer.css +4 -0
  16. data/test/dummy/app/controllers/application_controller.rb +5 -0
  17. data/test/dummy/app/controllers/inner_controller.rb +4 -0
  18. data/test/dummy/app/controllers/outer_controller.rb +4 -0
  19. data/test/dummy/app/helpers/application_helper.rb +2 -0
  20. data/test/dummy/app/helpers/inner_helper.rb +2 -0
  21. data/test/dummy/app/helpers/outer_helper.rb +2 -0
  22. data/test/dummy/app/views/inner/show.html.erb +2 -0
  23. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  24. data/test/dummy/app/views/layouts/inner.html.erb +1 -0
  25. data/test/dummy/app/views/outer/show.html.erb +4 -0
  26. data/test/dummy/bin/bundle +3 -0
  27. data/test/dummy/bin/rails +4 -0
  28. data/test/dummy/bin/rake +4 -0
  29. data/test/dummy/config/application.rb +23 -0
  30. data/test/dummy/config/boot.rb +5 -0
  31. data/test/dummy/config/database.yml +25 -0
  32. data/test/dummy/config/environment.rb +5 -0
  33. data/test/dummy/config/environments/development.rb +29 -0
  34. data/test/dummy/config/environments/production.rb +80 -0
  35. data/test/dummy/config/environments/test.rb +36 -0
  36. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  38. data/test/dummy/config/initializers/inflections.rb +16 -0
  39. data/test/dummy/config/initializers/mime_types.rb +5 -0
  40. data/test/dummy/config/initializers/secret_token.rb +12 -0
  41. data/test/dummy/config/initializers/session_store.rb +3 -0
  42. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/test/dummy/config/locales/en.yml +23 -0
  44. data/test/dummy/config/routes.rb +58 -0
  45. data/test/dummy/config.ru +4 -0
  46. data/test/dummy/db/development.sqlite3 +0 -0
  47. data/test/dummy/db/schema.rb +16 -0
  48. data/test/dummy/db/test.sqlite3 +0 -0
  49. data/test/dummy/log/development.log +150 -0
  50. data/test/dummy/log/test.log +198 -0
  51. data/test/dummy/public/404.html +58 -0
  52. data/test/dummy/public/422.html +58 -0
  53. data/test/dummy/public/500.html +57 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/test/controllers/inner_controller_test.rb +9 -0
  56. data/test/dummy/test/controllers/outer_controller_test.rb +11 -0
  57. data/test/dummy/test/helpers/inner_helper_test.rb +4 -0
  58. data/test/dummy/test/helpers/outer_helper_test.rb +4 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/0016043c1de3a2c9f8472dec1864ec2f +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/1569f72fa39d92bb6360cfe6164f6a5e +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/22af9bc2f11ddcd602d6937fe622a4ec +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/7125b888db3d68fef6df3aed3642d539 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/916998220f25ddc217b8a4f9998a39f4 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/927a9ed361e00b0cf437ac9b355bdaad +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/980938cc56726a8c0248bf51cdb51d9b +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/98ea9472893ca446c9e6bd1e1905a414 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/a3f34cdd305bad37b56222d5116f1c5a +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/a735b9f83434a183b0abe9f75197b60d +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/a7838caffdae043692db7b50b72b5900 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/f59080fbdbe56f678f40efd808863ad9 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  77. data/test/dummy/tmp/cache/assets/test/sprockets/0016043c1de3a2c9f8472dec1864ec2f +0 -0
  78. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  79. data/test/dummy/tmp/cache/assets/test/sprockets/22af9bc2f11ddcd602d6937fe622a4ec +0 -0
  80. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  81. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  82. data/test/dummy/tmp/cache/assets/test/sprockets/7125b888db3d68fef6df3aed3642d539 +0 -0
  83. data/test/dummy/tmp/cache/assets/test/sprockets/916998220f25ddc217b8a4f9998a39f4 +0 -0
  84. data/test/dummy/tmp/cache/assets/test/sprockets/927a9ed361e00b0cf437ac9b355bdaad +0 -0
  85. data/test/dummy/tmp/cache/assets/test/sprockets/a735b9f83434a183b0abe9f75197b60d +0 -0
  86. data/test/dummy/tmp/cache/assets/test/sprockets/a7838caffdae043692db7b50b72b5900 +0 -0
  87. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  88. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  89. data/test/dummy/tmp/cache/assets/test/sprockets/f59080fbdbe56f678f40efd808863ad9 +0 -0
  90. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  91. data/test/rails_tasks_test.rb +7 -0
  92. data/test/test_helper.rb +15 -0
  93. metadata +275 -0
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 0) do
15
+
16
+ end
Binary file
@@ -0,0 +1,150 @@
1
+
2
+
3
+ Started GET "/page" for 127.0.0.1 at 2013-10-22 14:54:31 -0400
4
+
5
+ ActionController::RoutingError (No route matches [GET] "/page"):
6
+ actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
7
+ actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
8
+ railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
9
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
10
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
11
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
12
+ activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
13
+ railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
14
+ actionpack (4.0.0) lib/action_dispatch/middleware/request_id.rb:21:in `call'
15
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
16
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
17
+ activesupport (4.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
18
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
19
+ actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
20
+ railties (4.0.0) lib/rails/engine.rb:511:in `call'
21
+ railties (4.0.0) lib/rails/application.rb:97:in `call'
22
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
23
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
24
+ rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
25
+ /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
26
+ /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
27
+ /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
28
+
29
+
30
+ Rendered /usr/local/rvm/gems/ruby-2.0.0-p247@experiments/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
31
+ Rendered /usr/local/rvm/gems/ruby-2.0.0-p247@experiments/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.6ms)
32
+ Rendered /usr/local/rvm/gems/ruby-2.0.0-p247@experiments/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.5ms)
33
+ Rendered /usr/local/rvm/gems/ruby-2.0.0-p247@experiments/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (31.7ms)
34
+
35
+
36
+ Started GET "/outer/show" for 127.0.0.1 at 2013-10-22 14:54:46 -0400
37
+ Processing by OuterController#show as HTML
38
+ Rendered outer/show.html.erb within layouts/application (0.4ms)
39
+ Completed 200 OK in 101ms (Views: 100.3ms | ActiveRecord: 0.0ms)
40
+
41
+
42
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-22 14:54:47 -0400
43
+
44
+
45
+ Started GET "/assets/inner.js?body=1" for 127.0.0.1 at 2013-10-22 14:54:47 -0400
46
+
47
+
48
+ Started GET "/assets/outer.js?body=1" for 127.0.0.1 at 2013-10-22 14:54:47 -0400
49
+
50
+
51
+ Started GET "/assets/inner.css?body=1" for 127.0.0.1 at 2013-10-22 14:54:47 -0400
52
+
53
+
54
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-22 14:54:47 -0400
55
+
56
+
57
+ Started GET "/assets/outer.css?body=1" for 127.0.0.1 at 2013-10-22 14:54:47 -0400
58
+
59
+
60
+ Started GET "/outer/show" for 127.0.0.1 at 2013-10-22 14:56:11 -0400
61
+ Processing by OuterController#show as HTML
62
+ Processing by InnerController#show as HTML
63
+ Rendered inner/show.html.erb within layouts/application (0.4ms)
64
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
65
+ Rendered outer/show.html.erb within layouts/application (9.0ms)
66
+ Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms)
67
+
68
+
69
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
70
+
71
+
72
+ Started GET "/assets/outer.css?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
73
+
74
+
75
+ Started GET "/assets/inner.css?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
76
+
77
+
78
+ Started GET "/assets/outer.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
79
+
80
+
81
+ Started GET "/assets/inner.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
82
+
83
+
84
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
85
+
86
+
87
+ Started GET "/assets/inner.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
88
+
89
+
90
+ Started GET "/assets/outer.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
91
+
92
+
93
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:12 -0400
94
+
95
+
96
+ Started GET "/outer/show" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
97
+ Processing by OuterController#show as HTML
98
+ Processing by InnerController#show as HTML
99
+ Rendered inner/show.html.erb within layouts/inner (0.1ms)
100
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
101
+ Rendered outer/show.html.erb within layouts/application (4.1ms)
102
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
103
+
104
+
105
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
106
+
107
+
108
+ Started GET "/assets/inner.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
109
+
110
+
111
+ Started GET "/assets/outer.css?body=1" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
112
+
113
+
114
+ Started GET "/assets/outer.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
115
+
116
+
117
+ Started GET "/assets/inner.css?body=1" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
118
+
119
+
120
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-22 14:56:53 -0400
121
+
122
+
123
+ Started GET "/outer/show" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
124
+ Processing by OuterController#show as HTML
125
+ Processing by InnerController#show as HTML
126
+ Rendered inner/show.html.erb within layouts/inner (0.1ms)
127
+ Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms)
128
+ Rendered outer/show.html.erb within layouts/application (3.4ms)
129
+ Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.0ms)
130
+
131
+
132
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
133
+
134
+
135
+ Started GET "/assets/inner.css?body=1" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
136
+
137
+
138
+ Started GET "/assets/inner.js?body=1" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
139
+
140
+
141
+ Started GET "/assets/outer.css?body=1" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
142
+
143
+
144
+ Started GET "/assets/outer.js?body=1" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
145
+
146
+
147
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-10-22 14:57:09 -0400
148
+  (171.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
149
+  (149.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
150
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -0,0 +1,198 @@
1
+  (0.5ms) begin transaction
2
+ --------------------------
3
+ RailsTasksTest: test_truth
4
+ --------------------------
5
+  (0.1ms) rollback transaction
6
+  (171.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
7
+  (118.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
+  (0.2ms) SELECT version FROM "schema_migrations"
9
+  (141.4ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+  (0.4ms) begin transaction
12
+ -----------------------------------------
13
+ InnerControllerTest: test_should_get_show
14
+ -----------------------------------------
15
+ Processing by InnerController#show as HTML
16
+ Rendered inner/show.html.erb within layouts/inner (1.3ms)
17
+ Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)
18
+  (0.1ms) rollback transaction
19
+  (0.1ms) begin transaction
20
+ -----------------------------------------
21
+ OuterControllerTest: test_should_get_show
22
+ -----------------------------------------
23
+ Processing by OuterController#show as HTML
24
+ Completed 500 Internal Server Error in 18ms
25
+  (0.1ms) rollback transaction
26
+  (0.1ms) begin transaction
27
+ --------------------------
28
+ RailsTasksTest: test_truth
29
+ --------------------------
30
+  (0.1ms) rollback transaction
31
+  (0.4ms) begin transaction
32
+ -----------------------------------------
33
+ InnerControllerTest: test_should_get_show
34
+ -----------------------------------------
35
+ Processing by InnerController#show as HTML
36
+ Rendered inner/show.html.erb within layouts/inner (1.5ms)
37
+ Completed 200 OK in 17ms (Views: 16.2ms | ActiveRecord: 0.0ms)
38
+  (0.1ms) rollback transaction
39
+  (0.1ms) begin transaction
40
+ -----------------------------------------
41
+ OuterControllerTest: test_should_get_show
42
+ -----------------------------------------
43
+ Processing by OuterController#show as HTML
44
+ Completed 500 Internal Server Error in 5ms
45
+  (0.1ms) rollback transaction
46
+  (0.1ms) begin transaction
47
+ --------------------------
48
+ RailsTasksTest: test_truth
49
+ --------------------------
50
+  (0.1ms) rollback transaction
51
+  (0.4ms) begin transaction
52
+ -----------------------------------------
53
+ InnerControllerTest: test_should_get_show
54
+ -----------------------------------------
55
+ Processing by InnerController#show as HTML
56
+ Rendered inner/show.html.erb within layouts/inner (1.2ms)
57
+ Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms)
58
+  (0.1ms) rollback transaction
59
+  (0.1ms) begin transaction
60
+ -----------------------------------------
61
+ OuterControllerTest: test_should_get_show
62
+ -----------------------------------------
63
+ Processing by OuterController#show as HTML
64
+ Completed 500 Internal Server Error in 5ms
65
+  (0.1ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+ --------------------------
68
+ RailsTasksTest: test_truth
69
+ --------------------------
70
+  (0.1ms) rollback transaction
71
+  (1.3ms) begin transaction
72
+ -----------------------------------------
73
+ InnerControllerTest: test_should_get_show
74
+ -----------------------------------------
75
+ Processing by InnerController#show as HTML
76
+ Rendered inner/show.html.erb within layouts/inner (1.4ms)
77
+ Completed 200 OK in 39ms (Views: 38.1ms | ActiveRecord: 0.0ms)
78
+  (0.1ms) rollback transaction
79
+  (0.1ms) begin transaction
80
+ -----------------------------------------
81
+ OuterControllerTest: test_should_get_show
82
+ -----------------------------------------
83
+ Processing by OuterController#show as HTML
84
+ Completed 500 Internal Server Error in 6ms
85
+  (0.1ms) rollback transaction
86
+  (0.1ms) begin transaction
87
+ --------------------------
88
+ RailsTasksTest: test_truth
89
+ --------------------------
90
+  (0.1ms) rollback transaction
91
+  (0.5ms) begin transaction
92
+ -----------------------------------------
93
+ InnerControllerTest: test_should_get_show
94
+ -----------------------------------------
95
+ Processing by InnerController#show as HTML
96
+ Rendered inner/show.html.erb within layouts/inner (1.3ms)
97
+ Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)
98
+  (0.1ms) rollback transaction
99
+  (0.2ms) begin transaction
100
+ -----------------------------------------
101
+ OuterControllerTest: test_should_get_show
102
+ -----------------------------------------
103
+ Processing by OuterController#show as HTML
104
+ Completed 500 Internal Server Error in 53ms
105
+  (0.1ms) rollback transaction
106
+  (0.1ms) begin transaction
107
+ --------------------------
108
+ RailsTasksTest: test_truth
109
+ --------------------------
110
+  (0.1ms) rollback transaction
111
+  (0.4ms) begin transaction
112
+ -----------------------------------------
113
+ InnerControllerTest: test_should_get_show
114
+ -----------------------------------------
115
+ Processing by InnerController#show as HTML
116
+ Rendered inner/show.html.erb within layouts/inner (1.0ms)
117
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
118
+  (0.1ms) rollback transaction
119
+  (0.1ms) begin transaction
120
+ -----------------------------------------
121
+ OuterControllerTest: test_should_get_show
122
+ -----------------------------------------
123
+ Processing by OuterController#show as HTML
124
+ Processing by InnerController#show as HTML
125
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
126
+ Completed 200 OK in 120ms (Views: 119.1ms | ActiveRecord: 0.0ms)
127
+  (0.1ms) rollback transaction
128
+  (0.1ms) begin transaction
129
+ --------------------------
130
+ RailsTasksTest: test_truth
131
+ --------------------------
132
+  (0.1ms) rollback transaction
133
+  (0.4ms) begin transaction
134
+ -----------------------------------------
135
+ InnerControllerTest: test_should_get_show
136
+ -----------------------------------------
137
+ Processing by InnerController#show as HTML
138
+ Rendered inner/show.html.erb within layouts/inner (1.0ms)
139
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
140
+  (0.1ms) rollback transaction
141
+  (0.1ms) begin transaction
142
+ -----------------------------------------
143
+ OuterControllerTest: test_should_get_show
144
+ -----------------------------------------
145
+ Processing by OuterController#show as HTML
146
+ Processing by InnerController#show as HTML
147
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
148
+ Completed 200 OK in 34ms (Views: 32.6ms | ActiveRecord: 0.0ms)
149
+  (0.1ms) rollback transaction
150
+  (0.1ms) begin transaction
151
+ --------------------------
152
+ RailsTasksTest: test_truth
153
+ --------------------------
154
+  (0.1ms) rollback transaction
155
+  (0.5ms) begin transaction
156
+ -----------------------------------------
157
+ InnerControllerTest: test_should_get_show
158
+ -----------------------------------------
159
+ Processing by InnerController#show as HTML
160
+ Rendered inner/show.html.erb within layouts/inner (0.9ms)
161
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
162
+  (0.1ms) rollback transaction
163
+  (0.1ms) begin transaction
164
+ -----------------------------------------
165
+ OuterControllerTest: test_should_get_show
166
+ -----------------------------------------
167
+ Processing by OuterController#show as HTML
168
+ Processing by InnerController#show as HTML
169
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
170
+ Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.0ms)
171
+  (0.1ms) rollback transaction
172
+  (0.1ms) begin transaction
173
+ --------------------------
174
+ RailsTasksTest: test_truth
175
+ --------------------------
176
+  (0.1ms) rollback transaction
177
+  (0.4ms) begin transaction
178
+ -----------------------------------------
179
+ InnerControllerTest: test_should_get_show
180
+ -----------------------------------------
181
+ Processing by InnerController#show as HTML
182
+ Rendered inner/show.html.erb within layouts/inner (1.0ms)
183
+ Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
184
+  (0.1ms) rollback transaction
185
+  (0.1ms) begin transaction
186
+ -----------------------------------------
187
+ OuterControllerTest: test_should_get_show
188
+ -----------------------------------------
189
+ Processing by OuterController#show as HTML
190
+ Processing by InnerController#show as HTML
191
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
192
+ Completed 200 OK in 15ms (Views: 14.7ms | ActiveRecord: 0.0ms)
193
+  (0.1ms) rollback transaction
194
+  (0.1ms) begin transaction
195
+ --------------------------
196
+ RailsTasksTest: test_truth
197
+ --------------------------
198
+  (0.1ms) rollback transaction
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class InnerControllerTest < ActionController::TestCase
4
+ test "should get show" do
5
+ get :show
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ class OuterControllerTest < ActionController::TestCase
4
+ test "should get show" do
5
+ get :show
6
+ assert_response :success
7
+ assert_select 'h1', "Outer#show"
8
+ assert_select 'h2', "Inner#show"
9
+ end
10
+
11
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class InnerHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class OuterHelperTest < ActionView::TestCase
4
+ end