makers 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +149 -0
  4. data/Rakefile +32 -0
  5. data/lib/generators/makers/model/model_generator.rb +15 -0
  6. data/lib/generators/makers/model/templates/maker.rb +2 -0
  7. data/lib/makers.rb +57 -0
  8. data/lib/makers/callbacks.rb +23 -0
  9. data/lib/makers/configuration.rb +10 -0
  10. data/lib/makers/definitions.rb +43 -0
  11. data/lib/makers/fetcher.rb +18 -0
  12. data/lib/makers/maker.rb +113 -0
  13. data/lib/makers/methods.rb +11 -0
  14. data/lib/makers/proxy.rb +52 -0
  15. data/lib/makers/railtie.rb +33 -0
  16. data/lib/makers/sequence.rb +19 -0
  17. data/lib/makers/version.rb +5 -0
  18. data/test/aliases_test.rb +20 -0
  19. data/test/associations_test.rb +50 -0
  20. data/test/attributes_test.rb +26 -0
  21. data/test/callbacks_test.rb +38 -0
  22. data/test/clean_test.rb +18 -0
  23. data/test/dependent_test.rb +30 -0
  24. data/test/dummy/README.rdoc +28 -0
  25. data/test/dummy/Rakefile +6 -0
  26. data/test/dummy/app/assets/javascripts/application.js +13 -0
  27. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  28. data/test/dummy/app/controllers/application_controller.rb +5 -0
  29. data/test/dummy/app/helpers/application_helper.rb +2 -0
  30. data/test/dummy/app/models/group.rb +2 -0
  31. data/test/dummy/app/models/post.rb +3 -0
  32. data/test/dummy/app/models/user.rb +3 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/bin/bundle +3 -0
  35. data/test/dummy/bin/rails +4 -0
  36. data/test/dummy/bin/rake +4 -0
  37. data/test/dummy/config.ru +4 -0
  38. data/test/dummy/config/application.rb +22 -0
  39. data/test/dummy/config/boot.rb +5 -0
  40. data/test/dummy/config/database.yml +25 -0
  41. data/test/dummy/config/environment.rb +5 -0
  42. data/test/dummy/config/environments/development.rb +37 -0
  43. data/test/dummy/config/environments/production.rb +87 -0
  44. data/test/dummy/config/environments/test.rb +47 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/test/dummy/config/initializers/inflections.rb +16 -0
  49. data/test/dummy/config/initializers/mime_types.rb +4 -0
  50. data/test/dummy/config/initializers/session_store.rb +3 -0
  51. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/test/dummy/config/locales/en.yml +23 -0
  53. data/test/dummy/config/routes.rb +56 -0
  54. data/test/dummy/config/secrets.yml +22 -0
  55. data/test/dummy/db/migrate/20140613221835_create_users.rb +13 -0
  56. data/test/dummy/db/migrate/20140615180954_create_posts.rb +10 -0
  57. data/test/dummy/db/schema.rb +33 -0
  58. data/test/dummy/log/test.log +273 -0
  59. data/test/dummy/public/404.html +67 -0
  60. data/test/dummy/public/422.html +67 -0
  61. data/test/dummy/public/500.html +66 -0
  62. data/test/dummy/public/favicon.ico +0 -0
  63. data/test/dummy/test/makers/people.rb +2 -0
  64. data/test/dummy/test/makers/users.rb +3 -0
  65. data/test/fabricators_test.rb +33 -0
  66. data/test/generators_test.rb +13 -0
  67. data/test/inheritance_test.rb +49 -0
  68. data/test/lists_test.rb +33 -0
  69. data/test/load_test.rb +13 -0
  70. data/test/merges_test.rb +31 -0
  71. data/test/test_helper.rb +26 -0
  72. metadata +202 -0
@@ -0,0 +1,33 @@
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: 20140615180954) do
15
+
16
+ create_table "posts", force: true do |t|
17
+ t.string "content"
18
+ t.integer "user_id"
19
+ t.datetime "created_at"
20
+ t.datetime "updated_at"
21
+ end
22
+
23
+ create_table "users", force: true do |t|
24
+ t.string "username"
25
+ t.string "name"
26
+ t.string "email"
27
+ t.integer "age"
28
+ t.integer "phone"
29
+ t.datetime "created_at"
30
+ t.datetime "updated_at"
31
+ end
32
+
33
+ end
@@ -0,0 +1,273 @@
1
+  (0.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime) 
2
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "name" varchar, "email" varchar, "age" integer, "phone" integer, "created_at" datetime, "updated_at" datetime)
3
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
4
+  (0.1ms) select sqlite_version(*)
5
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
6
+  (0.0ms) SELECT version FROM "schema_migrations"
7
+  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140615180954')
8
+  (0.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime) 
9
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar, "name" varchar, "email" varchar, "age" integer, "phone" integer, "created_at" datetime, "updated_at" datetime)
10
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
11
+  (0.0ms) select sqlite_version(*)
12
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
13
+  (0.0ms) SELECT version FROM "schema_migrations"
14
+  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140615180954')
15
+  (0.1ms) begin transaction
16
+ ----------------------------------
17
+ DependentTest: test_build_instance
18
+ ----------------------------------
19
+  (0.1ms) rollback transaction
20
+  (0.0ms) begin transaction
21
+ -----------------------------------
22
+ DependentTest: test_create_instance
23
+ -----------------------------------
24
+  (0.0ms) SAVEPOINT active_record_1
25
+ SQL (0.1ms) INSERT INTO "users" ("name", "email", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "name"], ["email", "name@example.com"], ["username", "name-1"], ["created_at", "2015-10-27 00:51:20.143687"], ["updated_at", "2015-10-27 00:51:20.143687"]]
26
+  (0.0ms) RELEASE SAVEPOINT active_record_1
27
+  (0.0ms) SAVEPOINT active_record_1
28
+ SQL (0.0ms) INSERT INTO "users" ("name", "email", "username", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "name"], ["email", "name@example.com"], ["username", "name-2"], ["created_at", "2015-10-27 00:51:20.147258"], ["updated_at", "2015-10-27 00:51:20.147258"]]
29
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30
+  (0.0ms) SAVEPOINT active_record_1
31
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
32
+  (0.0ms) RELEASE SAVEPOINT active_record_1
33
+  (0.0ms) SAVEPOINT active_record_1
34
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
35
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36
+  (0.0ms) rollback transaction
37
+  (0.1ms) begin transaction
38
+ -------------------------------------
39
+ DependentTest: test_return_attributes
40
+ -------------------------------------
41
+  (0.1ms) rollback transaction
42
+  (0.0ms) begin transaction
43
+ -----------------------------
44
+ CleanTest: test_clean_records
45
+ -----------------------------
46
+  (0.0ms) SAVEPOINT active_record_1
47
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.150626"], ["updated_at", "2015-10-27 00:51:20.150626"]]
48
+  (0.0ms) RELEASE SAVEPOINT active_record_1
49
+  (0.0ms) SAVEPOINT active_record_1
50
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.151590"], ["updated_at", "2015-10-27 00:51:20.151590"]]
51
+  (0.0ms) RELEASE SAVEPOINT active_record_1
52
+  (0.0ms) SAVEPOINT active_record_1
53
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.152378"], ["updated_at", "2015-10-27 00:51:20.152378"]]
54
+  (0.0ms) RELEASE SAVEPOINT active_record_1
55
+  (0.0ms) SAVEPOINT active_record_1
56
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.153071"], ["updated_at", "2015-10-27 00:51:20.153071"]]
57
+  (0.0ms) RELEASE SAVEPOINT active_record_1
58
+  (0.0ms) SAVEPOINT active_record_1
59
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.153698"], ["updated_at", "2015-10-27 00:51:20.153698"]]
60
+  (0.0ms) RELEASE SAVEPOINT active_record_1
61
+  (0.1ms) SAVEPOINT active_record_1
62
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
63
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64
+  (0.0ms) SAVEPOINT active_record_1
65
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
66
+  (0.0ms) RELEASE SAVEPOINT active_record_1
67
+  (0.0ms) SAVEPOINT active_record_1
68
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
69
+  (0.0ms) RELEASE SAVEPOINT active_record_1
70
+  (0.0ms) SAVEPOINT active_record_1
71
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
72
+  (0.0ms) RELEASE SAVEPOINT active_record_1
73
+  (0.0ms) SAVEPOINT active_record_1
74
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
75
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76
+  (0.0ms) SELECT COUNT(*) FROM "users"
77
+  (0.0ms) rollback transaction
78
+  (0.0ms) begin transaction
79
+ -------------------------------------
80
+ AttributesTest: test_numeric_sequence
81
+ -------------------------------------
82
+  (0.0ms) SAVEPOINT active_record_1
83
+ SQL (0.1ms) INSERT INTO "users" ("email", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "mail3@example.com"], ["age", 3], ["created_at", "2015-10-27 00:51:20.157769"], ["updated_at", "2015-10-27 00:51:20.157769"]]
84
+  (0.0ms) RELEASE SAVEPOINT active_record_1
85
+  (0.1ms) SAVEPOINT active_record_1
86
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
87
+  (0.0ms) RELEASE SAVEPOINT active_record_1
88
+  (0.0ms) rollback transaction
89
+  (0.0ms) begin transaction
90
+ -----------------------------------
91
+ AttributesTest: test_block_sequence
92
+ -----------------------------------
93
+  (0.0ms) SAVEPOINT active_record_1
94
+ SQL (0.0ms) INSERT INTO "users" ("email", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["email", "mail3@example.com"], ["age", 3], ["created_at", "2015-10-27 00:51:20.159468"], ["updated_at", "2015-10-27 00:51:20.159468"]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
96
+  (0.0ms) SAVEPOINT active_record_1
97
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
98
+  (0.0ms) RELEASE SAVEPOINT active_record_1
99
+  (0.0ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+ --------------------------------
102
+ MergesTest: test_create_instance
103
+ --------------------------------
104
+  (0.0ms) SAVEPOINT active_record_1
105
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "other"], ["created_at", "2015-10-27 00:51:20.161565"], ["updated_at", "2015-10-27 00:51:20.161565"]]
106
+  (0.1ms) RELEASE SAVEPOINT active_record_1
107
+  (0.1ms) SAVEPOINT active_record_1
108
+ SQL (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "other"], ["created_at", "2015-10-27 00:51:20.162643"], ["updated_at", "2015-10-27 00:51:20.162643"]]
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+  (0.0ms) SAVEPOINT active_record_1
111
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "other"], ["created_at", "2015-10-27 00:51:20.163603"], ["updated_at", "2015-10-27 00:51:20.163603"]]
112
+  (0.1ms) RELEASE SAVEPOINT active_record_1
113
+  (0.0ms) SAVEPOINT active_record_1
114
+ SQL (0.1ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "other"], ["created_at", "2015-10-27 00:51:20.166765"], ["updated_at", "2015-10-27 00:51:20.166765"]]
115
+  (0.1ms) RELEASE SAVEPOINT active_record_1
116
+  (0.0ms) SAVEPOINT active_record_1
117
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
119
+  (0.0ms) SAVEPOINT active_record_1
120
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
122
+  (0.1ms) SAVEPOINT active_record_1
123
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
125
+  (0.0ms) SAVEPOINT active_record_1
126
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
128
+  (0.0ms) rollback transaction
129
+  (0.0ms) begin transaction
130
+ -------------------------------
131
+ MergesTest: test_build_instance
132
+ -------------------------------
133
+  (0.0ms) rollback transaction
134
+  (0.0ms) begin transaction
135
+ ----------------------------------
136
+ MergesTest: test_return_attributes
137
+ ----------------------------------
138
+  (0.0ms) rollback transaction
139
+  (0.0ms) begin transaction
140
+ ------------------------------------
141
+ InheritanceTest: test_build_instance
142
+ ------------------------------------
143
+  (0.0ms) rollback transaction
144
+  (0.1ms) begin transaction
145
+ ---------------------------------------
146
+ InheritanceTest: test_return_attributes
147
+ ---------------------------------------
148
+  (0.0ms) rollback transaction
149
+  (0.0ms) begin transaction
150
+ -------------------------------------
151
+ InheritanceTest: test_create_instance
152
+ -------------------------------------
153
+  (0.0ms) SAVEPOINT active_record_1
154
+ SQL (0.1ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "name"], ["age", 9], ["created_at", "2015-10-27 00:51:20.174193"], ["updated_at", "2015-10-27 00:51:20.174193"]]
155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
156
+  (0.0ms) SAVEPOINT active_record_1
157
+ SQL (0.1ms) INSERT INTO "users" ("name", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "name"], ["email", "mail@example.com"], ["created_at", "2015-10-27 00:51:20.175456"], ["updated_at", "2015-10-27 00:51:20.175456"]]
158
+  (0.0ms) RELEASE SAVEPOINT active_record_1
159
+  (0.0ms) SAVEPOINT active_record_1
160
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
161
+  (0.0ms) RELEASE SAVEPOINT active_record_1
162
+  (0.0ms) SAVEPOINT active_record_1
163
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
165
+  (0.0ms) rollback transaction
166
+  (0.1ms) begin transaction
167
+ -----------------------------------
168
+ CallbacksTest: test_build_callbacks
169
+ -----------------------------------
170
+  (0.0ms) rollback transaction
171
+  (0.0ms) begin transaction
172
+ ------------------------------------
173
+ CallbacksTest: test_create_callbacks
174
+ ------------------------------------
175
+  (0.0ms) SAVEPOINT active_record_1
176
+ SQL (0.1ms) INSERT INTO "users" ("email", "name", "phone", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["email", "create@example.com"], ["name", "create"], ["phone", 1], ["age", 1], ["created_at", "2015-10-27 00:51:20.180107"], ["updated_at", "2015-10-27 00:51:20.180107"]]
177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
178
+  (0.0ms) SAVEPOINT active_record_1
179
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
181
+  (0.0ms) rollback transaction
182
+  (0.0ms) begin transaction
183
+ -------------------------
184
+ LoadTest: test_find_files
185
+ -------------------------
186
+  (0.0ms) rollback transaction
187
+  (0.0ms) begin transaction
188
+ -------------------------
189
+ AliasesTest: test_aliases
190
+ -------------------------
191
+  (0.0ms) rollback transaction
192
+  (0.0ms) begin transaction
193
+ --------------------------------
194
+ MakersTest: test_create_instance
195
+ --------------------------------
196
+  (0.1ms) SAVEPOINT active_record_1
197
+ SQL (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "name"], ["created_at", "2015-10-27 00:51:20.184929"], ["updated_at", "2015-10-27 00:51:20.184929"]]
198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
199
+  (0.0ms) SAVEPOINT active_record_1
200
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
202
+  (0.0ms) rollback transaction
203
+  (0.0ms) begin transaction
204
+ -------------------------------
205
+ MakersTest: test_build_instance
206
+ -------------------------------
207
+  (0.1ms) rollback transaction
208
+  (0.1ms) begin transaction
209
+ ----------------------------------
210
+ MakersTest: test_return_attributes
211
+ ----------------------------------
212
+  (0.0ms) rollback transaction
213
+  (0.0ms) begin transaction
214
+ ------------------------------------
215
+ GeneratorsTest: test_file_generation
216
+ ------------------------------------
217
+  (0.1ms) rollback transaction
218
+  (0.0ms) begin transaction
219
+ ---------------------------------------------
220
+ AssociationsTest: test_belongs_to_association
221
+ ---------------------------------------------
222
+  (0.1ms) SAVEPOINT active_record_1
223
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.202252"], ["updated_at", "2015-10-27 00:51:20.202252"]]
224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
225
+  (0.0ms) SAVEPOINT active_record_1
226
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
228
+  (0.0ms) rollback transaction
229
+  (0.0ms) begin transaction
230
+ -------------------------------------------
231
+ AssociationsTest: test_has_many_association
232
+ -------------------------------------------
233
+  (0.0ms) SAVEPOINT active_record_1
234
+ SQL (0.1ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.211902"], ["updated_at", "2015-10-27 00:51:20.211902"]]
235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
236
+  (0.0ms) SAVEPOINT active_record_1
237
+ SQL (0.1ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-10-27 00:51:20.213515"], ["updated_at", "2015-10-27 00:51:20.213515"]]
238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
239
+  (0.1ms) SAVEPOINT active_record_1
240
+ SQL (0.1ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 2]]
241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
242
+  (0.0ms) SAVEPOINT active_record_1
243
+ SQL (0.0ms) DELETE FROM "posts" WHERE "posts"."id" = ? [["id", 1]]
244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
245
+  (0.1ms) rollback transaction
246
+  (0.0ms) begin transaction
247
+ --------------------------
248
+ ListsTest: test_build_list
249
+ --------------------------
250
+  (0.0ms) rollback transaction
251
+  (0.0ms) begin transaction
252
+ ---------------------------
253
+ ListsTest: test_create_list
254
+ ---------------------------
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "name"], ["created_at", "2015-10-27 00:51:20.217552"], ["updated_at", "2015-10-27 00:51:20.217552"]]
257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
258
+  (0.0ms) SAVEPOINT active_record_1
259
+ SQL (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "name"], ["created_at", "2015-10-27 00:51:20.218612"], ["updated_at", "2015-10-27 00:51:20.218612"]]
260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
261
+  (0.0ms) SAVEPOINT active_record_1
262
+ SQL (0.0ms) INSERT INTO "users" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "name"], ["created_at", "2015-10-27 00:51:20.219423"], ["updated_at", "2015-10-27 00:51:20.219423"]]
263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
264
+  (0.0ms) SAVEPOINT active_record_1
265
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
267
+  (0.0ms) SAVEPOINT active_record_1
268
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
270
+  (0.0ms) SAVEPOINT active_record_1
271
+ SQL (0.0ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
273
+  (0.0ms) rollback transaction
@@ -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>