ajax_validator 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +87 -0
  4. data/Rakefile +36 -0
  5. data/app/assets/javascripts/ajax_validator/ajax_validator.js.coffee +46 -0
  6. data/app/assets/javascripts/ajax_validator/application.js +13 -0
  7. data/app/assets/stylesheets/ajax_validator/application.css +15 -0
  8. data/app/controllers/ajax_validator/application_controller.rb +4 -0
  9. data/app/controllers/ajax_validator/validators_controller.rb +68 -0
  10. data/app/helpers/ajax_validator/application_helper.rb +4 -0
  11. data/app/models/ajax_validator/concerns/validation.rb +21 -0
  12. data/app/models/ajax_validator/validator.rb +128 -0
  13. data/app/views/layouts/ajax_validator/application.html.erb +14 -0
  14. data/config/cucumber.yml +8 -0
  15. data/config/routes.rb +3 -0
  16. data/lib/ajax_validator/engine.rb +42 -0
  17. data/lib/ajax_validator/version.rb +3 -0
  18. data/lib/ajax_validator.rb +4 -0
  19. data/lib/tasks/ajax_validator_tasks.rake +4 -0
  20. data/lib/tasks/cucumber.rake +65 -0
  21. data/spec/dummy/README.rdoc +28 -0
  22. data/spec/dummy/Rakefile +6 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  24. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  25. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  26. data/spec/dummy/app/controllers/base_controller.rb +5 -0
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  28. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  29. data/spec/dummy/bin/bundle +3 -0
  30. data/spec/dummy/bin/rails +4 -0
  31. data/spec/dummy/bin/rake +4 -0
  32. data/spec/dummy/bin/setup +29 -0
  33. data/spec/dummy/config/application.rb +32 -0
  34. data/spec/dummy/config/boot.rb +5 -0
  35. data/spec/dummy/config/database.yml +110 -0
  36. data/spec/dummy/config/environment.rb +5 -0
  37. data/spec/dummy/config/environments/development.rb +41 -0
  38. data/spec/dummy/config/environments/production.rb +79 -0
  39. data/spec/dummy/config/environments/test.rb +42 -0
  40. data/spec/dummy/config/initializers/assets.rb +11 -0
  41. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  43. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  44. data/spec/dummy/config/initializers/inflections.rb +16 -0
  45. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  46. data/spec/dummy/config/initializers/session_store.rb +3 -0
  47. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/spec/dummy/config/locales/en.yml +23 -0
  49. data/spec/dummy/config/routes.rb +4 -0
  50. data/spec/dummy/config/secrets.yml +22 -0
  51. data/spec/dummy/config.ru +4 -0
  52. data/spec/dummy/db/development.sqlite3 +0 -0
  53. data/spec/dummy/db/test.sqlite3 +0 -0
  54. data/spec/dummy/log/development.log +715 -0
  55. data/spec/dummy/log/test.log +294 -0
  56. data/spec/dummy/public/404.html +67 -0
  57. data/spec/dummy/public/422.html +67 -0
  58. data/spec/dummy/public/500.html +66 -0
  59. data/spec/dummy/public/favicon.ico +0 -0
  60. data/spec/rails_helper.rb +68 -0
  61. data/spec/route_helper.rb +6 -0
  62. data/spec/spec_helper.rb +99 -0
  63. data/spec/support/capybara.rb +35 -0
  64. data/spec/support/database_cleaner.rb +77 -0
  65. data/spec/support/factory_girl_rails.rb +32 -0
  66. data/spec/support/matchers.rb +21 -0
  67. metadata +408 -0
@@ -0,0 +1,294 @@
1
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
3
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+  (0.3ms) BEGIN
5
+  (0.2ms) COMMIT
6
+  (0.1ms) BEGIN
7
+  (0.2ms) ROLLBACK
8
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
9
+ PG::UndefinedTable: ERROR: relation "ajax_validator_posts" does not exist
10
+ LINE 5: WHERE a.attrelid = '"ajax_validator_posts"'::...
11
+ ^
12
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
13
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
14
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
15
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
16
+ WHERE a.attrelid = '"ajax_validator_posts"'::regclass
17
+ AND a.attnum > 0 AND NOT a.attisdropped
18
+ ORDER BY a.attnum
19
+
20
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+  (115.8ms) DROP DATABASE IF EXISTS "dummy_test"
26
+  (352.1ms) CREATE DATABASE "dummy_test" ENCODING = 'unicode'
27
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
28
+  (7.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
29
+  (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (0.5ms) SELECT version FROM "schema_migrations"
31
+  (5.3ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
32
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
35
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
36
+ DETAIL: There is 1 other session using the database.
37
+ : DROP DATABASE IF EXISTS "dummy_test"
38
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
40
+  (0.6ms) SELECT version FROM "schema_migrations"
41
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
42
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
43
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
44
+ DETAIL: There is 1 other session using the database.
45
+ : DROP DATABASE IF EXISTS "dummy_test"
46
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
47
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
48
+  (0.5ms) SELECT version FROM "schema_migrations"
49
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
51
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
52
+ DETAIL: There is 1 other session using the database.
53
+ : DROP DATABASE IF EXISTS "dummy_test"
54
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
55
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
56
+  (9.1ms) CREATE TABLE "ajax_validator_posts" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
57
+  (0.5ms) SELECT version FROM "schema_migrations"
58
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160107110256')
59
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
60
+  (0.4ms) SELECT COUNT(*) FROM "ajax_validator_posts"
61
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
62
+  (0.3ms) BEGIN
63
+  (0.2ms) COMMIT
64
+  (0.2ms) BEGIN
65
+  (0.2ms) ROLLBACK
66
+  (0.2ms) BEGIN
67
+  (0.2ms) COMMIT
68
+  (0.2ms) BEGIN
69
+  (0.6ms) ROLLBACK
70
+  (0.2ms) BEGIN
71
+  (0.1ms) COMMIT
72
+  (0.2ms) BEGIN
73
+  (0.3ms) ROLLBACK
74
+  (0.2ms) BEGIN
75
+  (0.2ms) COMMIT
76
+  (0.2ms) BEGIN
77
+  (0.2ms) ROLLBACK
78
+  (0.2ms) BEGIN
79
+  (0.1ms) COMMIT
80
+  (0.1ms) BEGIN
81
+  (0.2ms) ROLLBACK
82
+  (0.2ms) BEGIN
83
+  (0.2ms) COMMIT
84
+  (0.1ms) BEGIN
85
+  (0.1ms) ROLLBACK
86
+  (0.1ms) BEGIN
87
+  (0.1ms) COMMIT
88
+  (0.1ms) BEGIN
89
+  (0.1ms) ROLLBACK
90
+  (0.1ms) BEGIN
91
+  (0.1ms) COMMIT
92
+  (0.1ms) BEGIN
93
+  (0.1ms) ROLLBACK
94
+  (0.1ms) BEGIN
95
+  (0.1ms) COMMIT
96
+  (0.1ms) BEGIN
97
+  (0.1ms) ROLLBACK
98
+  (0.1ms) BEGIN
99
+  (0.1ms) COMMIT
100
+  (0.1ms) BEGIN
101
+  (0.1ms) ROLLBACK
102
+  (0.2ms) BEGIN
103
+  (0.1ms) COMMIT
104
+  (0.1ms) BEGIN
105
+  (0.1ms) ROLLBACK
106
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
107
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
108
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
109
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
110
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
111
+ DETAIL: There is 1 other session using the database.
112
+ : DROP DATABASE IF EXISTS "dummy_test"
113
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
115
+  (11.5ms) DROP TABLE "ajax_validator_posts"
116
+  (8.2ms) CREATE TABLE "ajax_validator_posts" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
117
+  (0.5ms) SELECT version FROM "schema_migrations"
118
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
119
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
120
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
121
+ DETAIL: There is 1 other session using the database.
122
+ : DROP DATABASE IF EXISTS "dummy_test"
123
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
124
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
126
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
127
+ DETAIL: There is 1 other session using the database.
128
+ : DROP DATABASE IF EXISTS "dummy_test"
129
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
130
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
131
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
132
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
133
+ DETAIL: There is 1 other session using the database.
134
+ : DROP DATABASE IF EXISTS "dummy_test"
135
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
136
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
137
+  (12.7ms) DROP TABLE "ajax_validator_posts"
138
+  (10.8ms) CREATE TABLE "ajax_validator_posts" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
139
+  (0.6ms) SELECT version FROM "schema_migrations"
140
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
141
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
142
+ PG::ObjectInUse: ERROR: database "dummy_test" is being accessed by other users
143
+ DETAIL: There is 1 other session using the database.
144
+ : DROP DATABASE IF EXISTS "dummy_test"
145
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
146
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
147
+  (0.3ms) BEGIN
148
+  (0.2ms) COMMIT
149
+  (0.2ms) BEGIN
150
+  (0.2ms) ROLLBACK
151
+  (0.2ms) BEGIN
152
+  (0.2ms) COMMIT
153
+  (0.1ms) BEGIN
154
+  (0.1ms) ROLLBACK
155
+  (0.2ms) BEGIN
156
+  (0.2ms) COMMIT
157
+  (0.3ms) BEGIN
158
+  (0.2ms) ROLLBACK
159
+  (0.2ms) BEGIN
160
+  (0.2ms) COMMIT
161
+  (0.2ms) BEGIN
162
+  (0.2ms) ROLLBACK
163
+  (0.2ms) BEGIN
164
+  (0.2ms) COMMIT
165
+  (0.1ms) BEGIN
166
+  (0.2ms) ROLLBACK
167
+  (0.2ms) BEGIN
168
+  (0.1ms) COMMIT
169
+  (0.1ms) BEGIN
170
+  (0.1ms) ROLLBACK
171
+  (0.1ms) BEGIN
172
+  (0.1ms) COMMIT
173
+  (0.1ms) BEGIN
174
+  (0.1ms) ROLLBACK
175
+  (0.1ms) BEGIN
176
+  (0.1ms) COMMIT
177
+  (0.1ms) BEGIN
178
+  (0.1ms) ROLLBACK
179
+  (0.1ms) BEGIN
180
+  (0.1ms) COMMIT
181
+  (0.1ms) BEGIN
182
+  (0.1ms) ROLLBACK
183
+  (0.1ms) BEGIN
184
+  (0.1ms) COMMIT
185
+  (0.1ms) BEGIN
186
+  (0.1ms) ROLLBACK
187
+  (0.1ms) BEGIN
188
+  (0.1ms) COMMIT
189
+  (0.1ms) BEGIN
190
+  (0.1ms) ROLLBACK
191
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
192
+  (0.4ms) SELECT COUNT(*) FROM "ajax_validator_posts"
193
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
194
+ PG::UndefinedTable: ERROR: relation "ajax_validator_validators" does not exist
195
+ LINE 5: WHERE a.attrelid = '"ajax_validator_validator...
196
+ ^
197
+ : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
198
+ pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
199
+ FROM pg_attribute a LEFT JOIN pg_attrdef d
200
+ ON a.attrelid = d.adrelid AND a.attnum = d.adnum
201
+ WHERE a.attrelid = '"ajax_validator_validators"'::regclass
202
+ AND a.attnum > 0 AND NOT a.attisdropped
203
+ ORDER BY a.attnum
204
+
205
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
206
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
207
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
209
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
210
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
211
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
212
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
213
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
214
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
215
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
216
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
217
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
218
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
219
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
220
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
221
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
222
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
223
+  (5006.9ms) DROP DATABASE IF EXISTS "dummy_test"
224
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
225
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
226
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
227
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
228
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
229
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
230
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
231
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
232
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
233
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
234
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
235
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
236
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
237
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
238
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
239
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
240
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
241
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
242
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
243
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
244
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
245
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
246
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
247
+  (5006.8ms) DROP DATABASE IF EXISTS "dummy_test"
248
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
249
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
250
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
251
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
252
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
253
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
254
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
255
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
256
+  (5007.0ms) DROP DATABASE IF EXISTS "dummy_test"
257
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
258
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
259
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
260
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
261
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
262
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
263
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
264
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
265
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
266
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
267
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
268
+  (5006.7ms) DROP DATABASE IF EXISTS "dummy_test"
269
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
270
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
271
+  (5006.6ms) DROP DATABASE IF EXISTS "dummy_test"
272
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
273
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
274
+  (5007.0ms) DROP DATABASE IF EXISTS "dummy_test"
275
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
276
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
277
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
278
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
279
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
280
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
281
+  (10.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
282
+  (0.4ms) SELECT version FROM "schema_migrations"
283
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
284
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
285
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
286
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
287
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
288
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
289
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
290
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
291
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
292
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
293
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
294
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
@@ -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,68 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV['RAILS_ENV'] ||= 'test'
3
+
4
+ #~FIX
5
+ #require File.expand_path('../../config/environment', __FILE__)
6
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
7
+
8
+ # Prevent database truncation if the environment is production
9
+ abort('The Rails environment is running in production mode!') if Rails.env.production?
10
+ require 'spec_helper'
11
+ require 'rspec/rails'
12
+ # Add additional requires below this line. Rails is not loaded until this point!
13
+
14
+ #~ADD
15
+ # execute your testfiles directly rather than passing them to the rspec command
16
+ # (and a few other tricks, like having tests run automatically when you execute a library file).
17
+ require 'rspec/autorun'
18
+ # require 'ajax_validator' NEEDED?
19
+ require 'factory_girl_rails'
20
+ require 'route_helper'
21
+
22
+ # Requires supporting ruby files with custom matchers and macros, etc, in
23
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
24
+ # run as spec files by default. This means that files in spec/support that end
25
+ # in _spec.rb will both be required and run as specs, causing the specs to be
26
+ # run twice. It is recommended that you do not name files matching this glob to
27
+ # end with _spec.rb. You can configure this pattern with the --pattern
28
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
29
+ #
30
+ # The following line is provided for convenience purposes. It has the downside
31
+ # of increasing the boot-up time by auto-requiring all files in the support
32
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
33
+ # require only the support files necessary.
34
+ #
35
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
36
+ Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
37
+ # https://github.com/eliotsykes/rspec-rails-examples/tree/master/spec/support
38
+
39
+ RSpec.configure do |config|
40
+ # RSpec Rails can automatically mix in different behaviours to your tests
41
+ # based on their file location, for example enabling you to call `get` and
42
+ # `post` in specs under `spec/controllers`.
43
+ #
44
+ # You can disable this behaviour by removing the line below, and instead
45
+ # explicitly tag your specs with their type, e.g.:
46
+ #
47
+ # RSpec.describe UsersController, :type => :controller do
48
+ # # ...
49
+ # end
50
+ #
51
+ # The different available types are documented in the features, such as in
52
+ # https://relishapp.com/rspec/rspec-rails/docs
53
+ config.infer_spec_type_from_file_location!
54
+
55
+ # Filter lines from Rails gems in backtraces.
56
+ config.filter_rails_from_backtrace!
57
+ # arbitrary gems may also be filtered via:
58
+ # config.filter_gems_from_backtrace('gem name')
59
+
60
+ #~ADD
61
+ config.infer_base_class_for_anonymous_controllers = false
62
+ config.include RouteHelper, type: :routing
63
+ config.include RouteHelper, type: :controller
64
+ end
65
+
66
+ #~ADD
67
+ Rails.backtrace_cleaner.remove_silencers!
68
+ ActiveRecord::Migration.maintain_test_schema!
@@ -0,0 +1,6 @@
1
+ #~ADD
2
+ module RouteHelper
3
+ def self.included(base)
4
+ base.routes { AjaxValidator::Engine.routes }
5
+ end
6
+ end