bootstrap_toolbelt 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +37 -0
  5. data/app/helpers/flash_helper.rb +21 -0
  6. data/app/helpers/icon_helper.rb +9 -0
  7. data/app/views/flash_helper/_flash.html.erb +3 -0
  8. data/app/views/shared/_flash.html.erb +4 -0
  9. data/config/locales/da.yml +8 -0
  10. data/config/locales/en.yml +8 -0
  11. data/config/routes.rb +2 -0
  12. data/lib/bootstrap_toolbelt/engine.rb +4 -0
  13. data/lib/bootstrap_toolbelt/version.rb +3 -0
  14. data/lib/bootstrap_toolbelt.rb +5 -0
  15. data/lib/tasks/bootstrap_toolbelt_tasks.rake +4 -0
  16. data/test/bootstrap_toolbelt_test.rb +7 -0
  17. data/test/dummy/README.rdoc +28 -0
  18. data/test/dummy/Rakefile +6 -0
  19. data/test/dummy/app/assets/javascripts/application.js +13 -0
  20. data/test/dummy/app/assets/javascripts/users.js +2 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  22. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  23. data/test/dummy/app/assets/stylesheets/users.css +4 -0
  24. data/test/dummy/app/controllers/application_controller.rb +5 -0
  25. data/test/dummy/app/controllers/users_controller.rb +58 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/helpers/users_helper.rb +2 -0
  28. data/test/dummy/app/models/user.rb +2 -0
  29. data/test/dummy/app/views/layouts/application.html.erb +15 -0
  30. data/test/dummy/app/views/users/_form.html.erb +21 -0
  31. data/test/dummy/app/views/users/edit.html.erb +6 -0
  32. data/test/dummy/app/views/users/index.html.erb +27 -0
  33. data/test/dummy/app/views/users/new.html.erb +5 -0
  34. data/test/dummy/app/views/users/show.html.erb +9 -0
  35. data/test/dummy/bin/bundle +3 -0
  36. data/test/dummy/bin/rails +4 -0
  37. data/test/dummy/bin/rake +4 -0
  38. data/test/dummy/bin/setup +29 -0
  39. data/test/dummy/config/application.rb +26 -0
  40. data/test/dummy/config/boot.rb +5 -0
  41. data/test/dummy/config/database.yml +25 -0
  42. data/test/dummy/config/environment.rb +5 -0
  43. data/test/dummy/config/environments/development.rb +41 -0
  44. data/test/dummy/config/environments/production.rb +79 -0
  45. data/test/dummy/config/environments/test.rb +42 -0
  46. data/test/dummy/config/initializers/assets.rb +11 -0
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/test/dummy/config/initializers/inflections.rb +16 -0
  51. data/test/dummy/config/initializers/mime_types.rb +4 -0
  52. data/test/dummy/config/initializers/session_store.rb +3 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +23 -0
  55. data/test/dummy/config/routes.rb +58 -0
  56. data/test/dummy/config/secrets.yml +22 -0
  57. data/test/dummy/config.ru +4 -0
  58. data/test/dummy/db/development.sqlite3 +0 -0
  59. data/test/dummy/db/migrate/20150302084828_create_users.rb +9 -0
  60. data/test/dummy/db/schema.rb +22 -0
  61. data/test/dummy/log/development.log +392 -0
  62. data/test/dummy/public/404.html +67 -0
  63. data/test/dummy/public/422.html +67 -0
  64. data/test/dummy/public/500.html +66 -0
  65. data/test/dummy/public/favicon.ico +0 -0
  66. data/test/dummy/test/controllers/users_controller_test.rb +49 -0
  67. data/test/dummy/test/fixtures/users.yml +7 -0
  68. data/test/dummy/test/models/user_test.rb +7 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/0800f54ee19cf3cee10b956fa9786799 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/4050a4e5062ab95c9f32e9b6940821ea +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/87b209c0c9da28094a8d5581a21262c6 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/cebc6db0bbb8120f430da3970b173d2f +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/f56253b5f374fff1a33fbbc9881c9124 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  84. data/test/integration/navigation_test.rb +10 -0
  85. data/test/test_helper.rb +18 -0
  86. metadata +226 -0
@@ -0,0 +1,392 @@
1
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreateUsers (20150302084828)
6
+  (0.0ms) begin transaction
7
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150302084828"]]
9
+  (0.9ms) commit transaction
10
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+
12
+
13
+ Started GET "/users" for ::1 at 2015-03-02 09:48:42 +0100
14
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
15
+ Processing by UsersController#index as HTML
16
+ User Load (0.2ms) SELECT "users".* FROM "users"
17
+ Rendered users/index.html.erb within layouts/application (8.9ms)
18
+ Completed 200 OK in 65ms (Views: 63.2ms | ActiveRecord: 0.3ms)
19
+
20
+
21
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:48:43 +0100
22
+
23
+
24
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:48:43 +0100
25
+
26
+
27
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:48:43 +0100
28
+
29
+
30
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:48:43 +0100
31
+
32
+
33
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:48:43 +0100
34
+
35
+
36
+ Started GET "/users/new" for ::1 at 2015-03-02 09:48:46 +0100
37
+ Processing by UsersController#new as HTML
38
+ Rendered users/_form.html.erb (12.0ms)
39
+ Rendered users/new.html.erb within layouts/application (15.1ms)
40
+ Completed 200 OK in 45ms (Views: 33.2ms | ActiveRecord: 0.4ms)
41
+
42
+
43
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:48:46 +0100
44
+
45
+
46
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:48:46 +0100
47
+
48
+
49
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:48:46 +0100
50
+
51
+
52
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:48:46 +0100
53
+
54
+
55
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:48:46 +0100
56
+
57
+
58
+ Started POST "/users" for ::1 at 2015-03-02 09:48:48 +0100
59
+ Processing by UsersController#create as HTML
60
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"AphK8857X/AWK7sFYEeanrW4dz0/Ow0wEqo4KmtjnQO0qCjLQTuE0TkyzvopyzYkCjiVV9i3wO2kZ2ItPhcV5A==", "user"=>{"name"=>"asdf"}, "commit"=>"Create User"}
61
+  (0.1ms) begin transaction
62
+ SQL (0.4ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "asdf"], ["created_at", "2015-03-02 08:48:48.459030"], ["updated_at", "2015-03-02 08:48:48.459030"]]
63
+  (0.7ms) commit transaction
64
+ Redirected to http://localhost:3000/users/1
65
+ Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
66
+
67
+
68
+ Started GET "/users/1" for ::1 at 2015-03-02 09:48:48 +0100
69
+ Processing by UsersController#show as HTML
70
+ Parameters: {"id"=>"1"}
71
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
72
+ Rendered users/show.html.erb within layouts/application (0.8ms)
73
+ Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.2ms)
74
+
75
+
76
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:48:48 +0100
77
+
78
+
79
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:48:48 +0100
80
+
81
+
82
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:48:48 +0100
83
+
84
+
85
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:48:48 +0100
86
+
87
+
88
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:48:48 +0100
89
+
90
+
91
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:48:51 +0100
92
+
93
+
94
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:48:51 +0100
95
+
96
+
97
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:48:51 +0100
98
+
99
+
100
+ Started GET "/users/1" for ::1 at 2015-03-02 09:49:24 +0100
101
+ Processing by UsersController#show as HTML
102
+ Parameters: {"id"=>"1"}
103
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
104
+ Rendered users/show.html.erb within layouts/application (0.6ms)
105
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.9ms)
106
+ Completed 200 OK in 24ms (Views: 23.7ms | ActiveRecord: 0.1ms)
107
+
108
+
109
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:49:24 +0100
110
+
111
+
112
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:49:24 +0100
113
+
114
+
115
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:49:24 +0100
116
+
117
+
118
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:49:24 +0100
119
+
120
+
121
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:49:24 +0100
122
+
123
+
124
+ Started GET "/users" for ::1 at 2015-03-02 09:49:28 +0100
125
+ Processing by UsersController#index as HTML
126
+ User Load (0.1ms) SELECT "users".* FROM "users"
127
+ Rendered users/index.html.erb within layouts/application (1.6ms)
128
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.0ms)
129
+ Completed 200 OK in 28ms (Views: 28.0ms | ActiveRecord: 0.1ms)
130
+
131
+
132
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:49:28 +0100
133
+
134
+
135
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:49:28 +0100
136
+
137
+
138
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:49:28 +0100
139
+
140
+
141
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:49:28 +0100
142
+
143
+
144
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:49:28 +0100
145
+
146
+
147
+ Started GET "/users/new" for ::1 at 2015-03-02 09:49:30 +0100
148
+ Processing by UsersController#new as HTML
149
+ Rendered users/_form.html.erb (1.5ms)
150
+ Rendered users/new.html.erb within layouts/application (3.0ms)
151
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.1ms)
152
+ Completed 200 OK in 24ms (Views: 24.2ms | ActiveRecord: 0.0ms)
153
+
154
+
155
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:49:30 +0100
156
+
157
+
158
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:49:30 +0100
159
+
160
+
161
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:49:30 +0100
162
+
163
+
164
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:49:30 +0100
165
+
166
+
167
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:49:30 +0100
168
+
169
+
170
+ Started POST "/users" for ::1 at 2015-03-02 09:49:33 +0100
171
+ Processing by UsersController#create as HTML
172
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"+ZOLB9RVUcFc6eDy4z50dDWdgNQUTTfNHr+85T2QA5JPo+k/WxWK4HPwlQ2qstjOih1ivvPB+hCocubiaOSLdQ==", "user"=>{"name"=>"asdfasdasdf"}, "commit"=>"Create User"}
173
+  (0.1ms) begin transaction
174
+ SQL (0.3ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "asdfasdasdf"], ["created_at", "2015-03-02 08:49:33.027900"], ["updated_at", "2015-03-02 08:49:33.027900"]]
175
+  (8.9ms) commit transaction
176
+ Redirected to http://localhost:3000/users/2
177
+ Completed 302 Found in 12ms (ActiveRecord: 9.2ms)
178
+
179
+
180
+ Started GET "/users/2" for ::1 at 2015-03-02 09:49:33 +0100
181
+ Processing by UsersController#show as HTML
182
+ Parameters: {"id"=>"2"}
183
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
184
+ Rendered users/show.html.erb within layouts/application (0.5ms)
185
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/shared/_flash.html.erb (0.7ms)
186
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (2.2ms)
187
+ Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.1ms)
188
+
189
+
190
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:49:33 +0100
191
+
192
+
193
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:49:33 +0100
194
+
195
+
196
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:49:33 +0100
197
+
198
+
199
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:49:33 +0100
200
+
201
+
202
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:49:33 +0100
203
+
204
+
205
+ Started GET "/users/2" for ::1 at 2015-03-02 09:50:09 +0100
206
+ Processing by UsersController#show as HTML
207
+ Parameters: {"id"=>"2"}
208
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]
209
+ Rendered users/show.html.erb within layouts/application (0.8ms)
210
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.1ms)
211
+ Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.1ms)
212
+
213
+
214
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:09 +0100
215
+
216
+
217
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:09 +0100
218
+
219
+
220
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:09 +0100
221
+
222
+
223
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:09 +0100
224
+
225
+
226
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:09 +0100
227
+
228
+
229
+ Started GET "/users" for ::1 at 2015-03-02 09:50:11 +0100
230
+ Processing by UsersController#index as HTML
231
+ User Load (0.1ms) SELECT "users".* FROM "users"
232
+ Rendered users/index.html.erb within layouts/application (1.6ms)
233
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.0ms)
234
+ Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.1ms)
235
+
236
+
237
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:11 +0100
238
+
239
+
240
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:11 +0100
241
+
242
+
243
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:11 +0100
244
+
245
+
246
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:11 +0100
247
+
248
+
249
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:11 +0100
250
+
251
+
252
+ Started GET "/users/new" for ::1 at 2015-03-02 09:50:12 +0100
253
+ Processing by UsersController#new as HTML
254
+ Rendered users/_form.html.erb (1.4ms)
255
+ Rendered users/new.html.erb within layouts/application (2.2ms)
256
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.1ms)
257
+ Completed 200 OK in 21ms (Views: 20.9ms | ActiveRecord: 0.0ms)
258
+
259
+
260
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:13 +0100
261
+
262
+
263
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:13 +0100
264
+
265
+
266
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:13 +0100
267
+
268
+
269
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:13 +0100
270
+
271
+
272
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:13 +0100
273
+
274
+
275
+ Started POST "/users" for ::1 at 2015-03-02 09:50:15 +0100
276
+ Processing by UsersController#create as HTML
277
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"q8Qq6yMNk0IG0NrkCgXyWyZuv/f7k4NZGrs7gzaRqDwd9EjTrE1IYynJrxtDiV7hme5dnRwfToSsdmGEY+Ug2w==", "user"=>{"name"=>"123123"}, "commit"=>"Create User"}
278
+  (0.0ms) begin transaction
279
+ SQL (0.2ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "123123"], ["created_at", "2015-03-02 08:50:15.565948"], ["updated_at", "2015-03-02 08:50:15.565948"]]
280
+  (8.3ms) commit transaction
281
+ Redirected to http://localhost:3000/users/3
282
+ Completed 302 Found in 11ms (ActiveRecord: 8.6ms)
283
+
284
+
285
+ Started GET "/users/3" for ::1 at 2015-03-02 09:50:15 +0100
286
+ Processing by UsersController#show as HTML
287
+ Parameters: {"id"=>"3"}
288
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]]
289
+ Rendered users/show.html.erb within layouts/application (0.5ms)
290
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/shared/_flash.html.erb (0.3ms)
291
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (1.5ms)
292
+ Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.1ms)
293
+
294
+
295
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:15 +0100
296
+
297
+
298
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:15 +0100
299
+
300
+
301
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:15 +0100
302
+
303
+
304
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:15 +0100
305
+
306
+
307
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:15 +0100
308
+
309
+
310
+ Started GET "/users" for ::1 at 2015-03-02 09:50:27 +0100
311
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
312
+ Processing by UsersController#index as HTML
313
+ User Load (0.1ms) SELECT "users".* FROM "users"
314
+ Rendered users/index.html.erb within layouts/application (14.3ms)
315
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.3ms)
316
+ Completed 200 OK in 61ms (Views: 58.3ms | ActiveRecord: 0.4ms)
317
+
318
+
319
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:27 +0100
320
+
321
+
322
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:27 +0100
323
+
324
+
325
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:27 +0100
326
+
327
+
328
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:27 +0100
329
+
330
+
331
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:27 +0100
332
+
333
+
334
+ Started GET "/users/1/edit" for ::1 at 2015-03-02 09:50:29 +0100
335
+ Processing by UsersController#edit as HTML
336
+ Parameters: {"id"=>"1"}
337
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
338
+ Rendered users/_form.html.erb (16.9ms)
339
+ Rendered users/edit.html.erb within layouts/application (19.3ms)
340
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (0.1ms)
341
+ Completed 200 OK in 46ms (Views: 38.0ms | ActiveRecord: 0.4ms)
342
+
343
+
344
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:29 +0100
345
+
346
+
347
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:29 +0100
348
+
349
+
350
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:30 +0100
351
+
352
+
353
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:30 +0100
354
+
355
+
356
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:30 +0100
357
+
358
+
359
+ Started PATCH "/users/1" for ::1 at 2015-03-02 09:50:32 +0100
360
+ Processing by UsersController#update as HTML
361
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"YsPI20sQ0YxUgP20dxIeZj6zT6l9gwgSLwhNF6LY3R/U86rjxFAKrXuZiEs+nrLcgTOtw5oPxc+ZxRcQ96xV+A==", "user"=>{"name"=>"asdfasdf"}, "commit"=>"Update User", "id"=>"1"}
362
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
363
+  (0.5ms) begin transaction
364
+ SQL (0.7ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = ? [["name", "asdfasdf"], ["updated_at", "2015-03-02 08:50:32.479475"], ["id", 1]]
365
+  (8.0ms) commit transaction
366
+ Redirected to http://localhost:3000/users/1
367
+ Completed 302 Found in 16ms (ActiveRecord: 9.4ms)
368
+
369
+
370
+ Started GET "/users/1" for ::1 at 2015-03-02 09:50:32 +0100
371
+ Processing by UsersController#show as HTML
372
+ Parameters: {"id"=>"1"}
373
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
374
+ Rendered users/show.html.erb within layouts/application (1.0ms)
375
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/shared/_flash.html.erb (0.7ms)
376
+ Rendered /Users/kristian/Code/bootstrap_toolbelt/app/views/flash_helper/_flash.html.erb (2.4ms)
377
+ Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.1ms)
378
+
379
+
380
+ Started GET "/assets/users-dfa7b291102a59957590b4e00e20f1c8.css?body=1" for ::1 at 2015-03-02 09:50:32 +0100
381
+
382
+
383
+ Started GET "/assets/scaffold-ca007d4d73fdd54c8e9c2a16b1d732f9.css?body=1" for ::1 at 2015-03-02 09:50:32 +0100
384
+
385
+
386
+ Started GET "/assets/application-bcdad396ad4dd02237c45c691ac058eb.css?body=1" for ::1 at 2015-03-02 09:50:32 +0100
387
+
388
+
389
+ Started GET "/assets/application-9dd4861a92e4f9a660455c3058cf3a14.js?body=1" for ::1 at 2015-03-02 09:50:32 +0100
390
+
391
+
392
+ Started GET "/assets/users-46c9a194bd0668e67d57241f94473dc8.js?body=1" for ::1 at 2015-03-02 09:50:32 +0100
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class UsersControllerTest < ActionController::TestCase
4
+ setup do
5
+ @user = users(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:users)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create user" do
20
+ assert_difference('User.count') do
21
+ post :create, user: { name: @user.name }
22
+ end
23
+
24
+ assert_redirected_to user_path(assigns(:user))
25
+ end
26
+
27
+ test "should show user" do
28
+ get :show, id: @user
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, id: @user
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update user" do
38
+ patch :update, id: @user, user: { name: @user.name }
39
+ assert_redirected_to user_path(assigns(:user))
40
+ end
41
+
42
+ test "should destroy user" do
43
+ assert_difference('User.count', -1) do
44
+ delete :destroy, id: @user
45
+ end
46
+
47
+ assert_redirected_to users_path
48
+ end
49
+ end
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ name: MyString
5
+
6
+ two:
7
+ name: MyString
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end