ajax_validator 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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +87 -0
- data/Rakefile +36 -0
- data/app/assets/javascripts/ajax_validator/ajax_validator.js.coffee +46 -0
- data/app/assets/javascripts/ajax_validator/application.js +13 -0
- data/app/assets/stylesheets/ajax_validator/application.css +15 -0
- data/app/controllers/ajax_validator/application_controller.rb +4 -0
- data/app/controllers/ajax_validator/validators_controller.rb +68 -0
- data/app/helpers/ajax_validator/application_helper.rb +4 -0
- data/app/models/ajax_validator/concerns/validation.rb +21 -0
- data/app/models/ajax_validator/validator.rb +128 -0
- data/app/views/layouts/ajax_validator/application.html.erb +14 -0
- data/config/cucumber.yml +8 -0
- data/config/routes.rb +3 -0
- data/lib/ajax_validator/engine.rb +42 -0
- data/lib/ajax_validator/version.rb +3 -0
- data/lib/ajax_validator.rb +4 -0
- data/lib/tasks/ajax_validator_tasks.rake +4 -0
- data/lib/tasks/cucumber.rake +65 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/base_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +110 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +715 -0
- data/spec/dummy/log/test.log +294 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +68 -0
- data/spec/route_helper.rb +6 -0
- data/spec/spec_helper.rb +99 -0
- data/spec/support/capybara.rb +35 -0
- data/spec/support/database_cleaner.rb +77 -0
- data/spec/support/factory_girl_rails.rb +32 -0
- data/spec/support/matchers.rb +21 -0
- metadata +408 -0
@@ -0,0 +1,294 @@
|
|
1
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
6
|
+
[1m[35m (0.1ms)[0m BEGIN
|
7
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
8
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
25
|
+
[1m[36m (115.8ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
26
|
+
[1m[35m (352.1ms)[0m CREATE DATABASE "dummy_test" ENCODING = 'unicode'
|
27
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
28
|
+
[1m[35m (7.5ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
29
|
+
[1m[36m (7.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
30
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
31
|
+
[1m[36m (5.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
32
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
33
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
39
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
40
|
+
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
41
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
42
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
47
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
48
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
49
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
55
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
56
|
+
[1m[35m (9.1ms)[0m CREATE TABLE "ajax_validator_posts" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
57
|
+
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
58
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20160107110256')
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "ajax_validator_posts"
|
61
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62
|
+
[1m[35m (0.3ms)[0m BEGIN
|
63
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
64
|
+
[1m[35m (0.2ms)[0m BEGIN
|
65
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
66
|
+
[1m[35m (0.2ms)[0m BEGIN
|
67
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
68
|
+
[1m[35m (0.2ms)[0m BEGIN
|
69
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
70
|
+
[1m[35m (0.2ms)[0m BEGIN
|
71
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
72
|
+
[1m[35m (0.2ms)[0m BEGIN
|
73
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
74
|
+
[1m[35m (0.2ms)[0m BEGIN
|
75
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
76
|
+
[1m[35m (0.2ms)[0m BEGIN
|
77
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
78
|
+
[1m[35m (0.2ms)[0m BEGIN
|
79
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
80
|
+
[1m[35m (0.1ms)[0m BEGIN
|
81
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
82
|
+
[1m[35m (0.2ms)[0m BEGIN
|
83
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
84
|
+
[1m[35m (0.1ms)[0m BEGIN
|
85
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
86
|
+
[1m[35m (0.1ms)[0m BEGIN
|
87
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
88
|
+
[1m[35m (0.1ms)[0m BEGIN
|
89
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
90
|
+
[1m[35m (0.1ms)[0m BEGIN
|
91
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
92
|
+
[1m[35m (0.1ms)[0m BEGIN
|
93
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
94
|
+
[1m[35m (0.1ms)[0m BEGIN
|
95
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
96
|
+
[1m[35m (0.1ms)[0m BEGIN
|
97
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
98
|
+
[1m[35m (0.1ms)[0m BEGIN
|
99
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
100
|
+
[1m[35m (0.1ms)[0m BEGIN
|
101
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
102
|
+
[1m[35m (0.2ms)[0m BEGIN
|
103
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
104
|
+
[1m[35m (0.1ms)[0m BEGIN
|
105
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
106
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
108
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
109
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
114
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
115
|
+
[1m[35m (11.5ms)[0m DROP TABLE "ajax_validator_posts"
|
116
|
+
[1m[36m (8.2ms)[0m [1mCREATE TABLE "ajax_validator_posts" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
117
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
118
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
119
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
124
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
125
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
130
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
131
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
136
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
137
|
+
[1m[35m (12.7ms)[0m DROP TABLE "ajax_validator_posts"
|
138
|
+
[1m[36m (10.8ms)[0m [1mCREATE TABLE "ajax_validator_posts" ("id" serial primary key, "name" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) [0m
|
139
|
+
[1m[35m (0.6ms)[0m SELECT version FROM "schema_migrations"
|
140
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
141
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
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
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
146
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
147
|
+
[1m[35m (0.3ms)[0m BEGIN
|
148
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
149
|
+
[1m[35m (0.2ms)[0m BEGIN
|
150
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
151
|
+
[1m[35m (0.2ms)[0m BEGIN
|
152
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
153
|
+
[1m[35m (0.1ms)[0m BEGIN
|
154
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
155
|
+
[1m[35m (0.2ms)[0m BEGIN
|
156
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
157
|
+
[1m[35m (0.3ms)[0m BEGIN
|
158
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
159
|
+
[1m[35m (0.2ms)[0m BEGIN
|
160
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
161
|
+
[1m[35m (0.2ms)[0m BEGIN
|
162
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
163
|
+
[1m[35m (0.2ms)[0m BEGIN
|
164
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
165
|
+
[1m[35m (0.1ms)[0m BEGIN
|
166
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
167
|
+
[1m[35m (0.2ms)[0m BEGIN
|
168
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
169
|
+
[1m[35m (0.1ms)[0m BEGIN
|
170
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
171
|
+
[1m[35m (0.1ms)[0m BEGIN
|
172
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
173
|
+
[1m[35m (0.1ms)[0m BEGIN
|
174
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
175
|
+
[1m[35m (0.1ms)[0m BEGIN
|
176
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
177
|
+
[1m[35m (0.1ms)[0m BEGIN
|
178
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
179
|
+
[1m[35m (0.1ms)[0m BEGIN
|
180
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
181
|
+
[1m[35m (0.1ms)[0m BEGIN
|
182
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
183
|
+
[1m[35m (0.1ms)[0m BEGIN
|
184
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
185
|
+
[1m[35m (0.1ms)[0m BEGIN
|
186
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
187
|
+
[1m[35m (0.1ms)[0m BEGIN
|
188
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
189
|
+
[1m[35m (0.1ms)[0m BEGIN
|
190
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
191
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
192
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "ajax_validator_posts"
|
193
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
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
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
206
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
207
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
208
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
209
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
210
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
211
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
212
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
213
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
214
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
215
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
216
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
217
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
218
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
219
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
220
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
221
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
222
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
223
|
+
[1m[36m (5006.9ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
224
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
225
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
226
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
227
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
228
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
229
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
230
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
231
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
232
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
233
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
234
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
235
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
236
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
237
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
238
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
239
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
240
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
241
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
242
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
243
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
244
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
245
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
246
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
247
|
+
[1m[36m (5006.8ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
248
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
249
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
250
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
251
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
252
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
253
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
254
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
255
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
256
|
+
[1m[36m (5007.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
257
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
258
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
259
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
260
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
261
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
262
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
263
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
264
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
265
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
266
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
267
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
268
|
+
[1m[36m (5006.7ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
269
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
270
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
271
|
+
[1m[36m (5006.6ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
272
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
273
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
274
|
+
[1m[36m (5007.0ms)[0m [1mDROP DATABASE IF EXISTS "dummy_test"[0m
|
275
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.5ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
276
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
277
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
278
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
279
|
+
[1m[36mSQL (0.5ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
280
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
281
|
+
[1m[36m (10.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
282
|
+
[1m[35m (0.4ms)[0m SELECT version FROM "schema_migrations"
|
283
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('0')[0m
|
284
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
285
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
286
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
287
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
288
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
289
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
290
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
291
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
292
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
293
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
294
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
@@ -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!
|