irreverent 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +5 -0
- data/Rakefile +32 -0
- data/lib/irreverent/flash.rb +45 -0
- data/lib/irreverent/locales/en.yml +12 -0
- data/lib/irreverent/version.rb +3 -0
- data/lib/irreverent.rb +14 -0
- data/lib/tasks/irreverent_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/javascripts/users.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
- data/test/dummy/app/assets/stylesheets/users.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/users_controller.rb +56 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/users_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +8 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/users/_form.html.erb +21 -0
- data/test/dummy/app/views/users/edit.html.erb +6 -0
- data/test/dummy/app/views/users/index.html.erb +27 -0
- data/test/dummy/app/views/users/new.html.erb +5 -0
- data/test/dummy/app/views/users/show.html.erb +9 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140206221728_create_users.rb +9 -0
- data/test/dummy/db/schema.rb +22 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +15 -0
- data/test/dummy/log/test.log +416 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/flash_test.rb +35 -0
- data/test/irreverent_test.rb +4 -0
- data/test/test_helper.rb +15 -0
- metadata +181 -0
@@ -0,0 +1,416 @@
|
|
1
|
+
[1m[36m (1005.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
2
|
+
[1m[35m (198.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
|
+
[1m[36m (224.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4
|
+
[1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
|
5
|
+
[1m[36m (222.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140206221728')[0m
|
6
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
7
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
8
|
+
----------------------------------------------------------
|
9
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
10
|
+
----------------------------------------------------------
|
11
|
+
Processing by UsersController#create as HTML
|
12
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
13
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
14
|
+
[1m[36mSQL (8.8ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00]]
|
15
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16
|
+
Redirected to http://test.host/users/1
|
17
|
+
Completed 302 Found in 29ms (ActiveRecord: 10.1ms)
|
18
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
19
|
+
[1m[35m (0.1ms)[0m begin transaction
|
20
|
+
---------------------------------------------------------
|
21
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
22
|
+
---------------------------------------------------------
|
23
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
24
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00]]
|
25
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
26
|
+
Processing by UsersController#destroy as HTML
|
27
|
+
Parameters: {"id"=>"1"}
|
28
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
29
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
30
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
31
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
32
|
+
Redirected to http://test.host/users
|
33
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
34
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
35
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36
|
+
--------------------------------------------------------
|
37
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
38
|
+
--------------------------------------------------------
|
39
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
40
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00]]
|
41
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
42
|
+
Processing by UsersController#update as HTML
|
43
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
44
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
45
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
46
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 22:23:58 UTC +00:00]]
|
47
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
48
|
+
Redirected to http://test.host/users/1
|
49
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
50
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
51
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
52
|
+
----------------------------------------------------------
|
53
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
54
|
+
----------------------------------------------------------
|
55
|
+
Processing by UsersController#create as HTML
|
56
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
57
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58
|
+
[1m[36mSQL (3.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00]]
|
59
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
60
|
+
Completed 500 Internal Server Error in 17ms
|
61
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
62
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63
|
+
---------------------------------------------------------
|
64
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
65
|
+
---------------------------------------------------------
|
66
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
67
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00]]
|
68
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
69
|
+
Processing by UsersController#destroy as HTML
|
70
|
+
Parameters: {"id"=>"1"}
|
71
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
72
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
73
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
74
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
75
|
+
Completed 500 Internal Server Error in 6ms
|
76
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
77
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
78
|
+
--------------------------------------------------------
|
79
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
80
|
+
--------------------------------------------------------
|
81
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
82
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00]]
|
83
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
84
|
+
Processing by UsersController#update as HTML
|
85
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
86
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
87
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
88
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 22:43:37 UTC +00:00]]
|
89
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
90
|
+
Completed 500 Internal Server Error in 5ms
|
91
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
92
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
93
|
+
----------------------------------------------------------
|
94
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
95
|
+
----------------------------------------------------------
|
96
|
+
Processing by UsersController#create as HTML
|
97
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
98
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
99
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00]]
|
100
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
101
|
+
Redirected to http://test.host/users/1
|
102
|
+
Completed 302 Found in 29ms (ActiveRecord: 4.3ms)
|
103
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
104
|
+
[1m[35m (0.1ms)[0m begin transaction
|
105
|
+
---------------------------------------------------------
|
106
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
107
|
+
---------------------------------------------------------
|
108
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
109
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00]]
|
110
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
111
|
+
Processing by UsersController#destroy as HTML
|
112
|
+
Parameters: {"id"=>"1"}
|
113
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
114
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
115
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
116
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
117
|
+
Redirected to http://test.host/users
|
118
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
119
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
120
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
121
|
+
--------------------------------------------------------
|
122
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
123
|
+
--------------------------------------------------------
|
124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
125
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00]]
|
126
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
127
|
+
Processing by UsersController#update as HTML
|
128
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
129
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
130
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
131
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 22:45:50 UTC +00:00]]
|
132
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
133
|
+
Redirected to http://test.host/users/1
|
134
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
|
135
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
136
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
137
|
+
----------------------------------------------------------
|
138
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
139
|
+
----------------------------------------------------------
|
140
|
+
Processing by UsersController#create as HTML
|
141
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
142
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
143
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00]]
|
144
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
145
|
+
Redirected to http://test.host/users/1
|
146
|
+
Completed 302 Found in 34ms (ActiveRecord: 4.4ms)
|
147
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
148
|
+
[1m[35m (0.1ms)[0m begin transaction
|
149
|
+
---------------------------------------------------------
|
150
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
151
|
+
---------------------------------------------------------
|
152
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
153
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00]]
|
154
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
155
|
+
Processing by UsersController#destroy as HTML
|
156
|
+
Parameters: {"id"=>"1"}
|
157
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
158
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
159
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
160
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
161
|
+
Redirected to http://test.host/users
|
162
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
|
163
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
164
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
165
|
+
--------------------------------------------------------
|
166
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
167
|
+
--------------------------------------------------------
|
168
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
169
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00]]
|
170
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
171
|
+
Processing by UsersController#update as HTML
|
172
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
173
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
174
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
175
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 22:47:39 UTC +00:00]]
|
176
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
177
|
+
Redirected to http://test.host/users/1
|
178
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
179
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
180
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
181
|
+
-------------------------------------------------------------
|
182
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
183
|
+
-------------------------------------------------------------
|
184
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
185
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00], ["name", "Undestroyable"], ["updated_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00]]
|
186
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
187
|
+
Processing by UsersController#destroy as HTML
|
188
|
+
Parameters: {"id"=>"1"}
|
189
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
190
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
191
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
192
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
193
|
+
Redirected to http://test.host/users
|
194
|
+
Completed 302 Found in 18ms (ActiveRecord: 0.6ms)
|
195
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
196
|
+
[1m[35m (0.1ms)[0m begin transaction
|
197
|
+
----------------------------------------------------------
|
198
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
199
|
+
----------------------------------------------------------
|
200
|
+
Processing by UsersController#create as HTML
|
201
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
202
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
203
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00]]
|
204
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
205
|
+
Redirected to http://test.host/users/1
|
206
|
+
Completed 302 Found in 20ms (ActiveRecord: 0.9ms)
|
207
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
209
|
+
---------------------------------------------------------
|
210
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
211
|
+
---------------------------------------------------------
|
212
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
213
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00]]
|
214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
215
|
+
Processing by UsersController#destroy as HTML
|
216
|
+
Parameters: {"id"=>"1"}
|
217
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
221
|
+
Redirected to http://test.host/users
|
222
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
|
223
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
224
|
+
[1m[35m (0.1ms)[0m begin transaction
|
225
|
+
--------------------------------------------------------
|
226
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
227
|
+
--------------------------------------------------------
|
228
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
229
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00]]
|
230
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
231
|
+
Processing by UsersController#update as HTML
|
232
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
233
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
234
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
235
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 22:49:10 UTC +00:00]]
|
236
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
237
|
+
Redirected to http://test.host/users/1
|
238
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
|
239
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
240
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
241
|
+
-------------------------------------------------------------
|
242
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
243
|
+
-------------------------------------------------------------
|
244
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
245
|
+
[1m[36mSQL (9.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00]]
|
246
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
247
|
+
Processing by UsersController#destroy as HTML
|
248
|
+
Parameters: {"id"=>"1"}
|
249
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
250
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
251
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
252
|
+
Redirected to http://test.host/users/1
|
253
|
+
Completed 302 Found in 17ms (ActiveRecord: 0.3ms)
|
254
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
255
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
256
|
+
----------------------------------------------------------
|
257
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
258
|
+
----------------------------------------------------------
|
259
|
+
Processing by UsersController#create as HTML
|
260
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
261
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
262
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00]]
|
263
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
264
|
+
Redirected to http://test.host/users/1
|
265
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
266
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
267
|
+
[1m[35m (0.1ms)[0m begin transaction
|
268
|
+
---------------------------------------------------------
|
269
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
270
|
+
---------------------------------------------------------
|
271
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
272
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00]]
|
273
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
274
|
+
Processing by UsersController#destroy as HTML
|
275
|
+
Parameters: {"id"=>"1"}
|
276
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
277
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
278
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
279
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
280
|
+
Redirected to http://test.host/users
|
281
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
282
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
284
|
+
--------------------------------------------------------
|
285
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
286
|
+
--------------------------------------------------------
|
287
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
288
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00]]
|
289
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
290
|
+
Processing by UsersController#update as HTML
|
291
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
292
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
293
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
294
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 22:51:38 UTC +00:00]]
|
295
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
296
|
+
Redirected to http://test.host/users/1
|
297
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
298
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
299
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
300
|
+
-------------------------------------------------------------
|
301
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
302
|
+
-------------------------------------------------------------
|
303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
304
|
+
[1m[36mSQL (8.9ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00]]
|
305
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
306
|
+
Processing by UsersController#destroy as HTML
|
307
|
+
Parameters: {"id"=>"1"}
|
308
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
309
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
310
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
311
|
+
Redirected to http://test.host/users/1
|
312
|
+
Completed 302 Found in 17ms (ActiveRecord: 0.3ms)
|
313
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
314
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
315
|
+
----------------------------------------------------------
|
316
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
317
|
+
----------------------------------------------------------
|
318
|
+
Processing by UsersController#create as HTML
|
319
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
320
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
321
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00]]
|
322
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
323
|
+
Redirected to http://test.host/users/1
|
324
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
|
325
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
326
|
+
[1m[35m (0.1ms)[0m begin transaction
|
327
|
+
---------------------------------------------------------
|
328
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
329
|
+
---------------------------------------------------------
|
330
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
331
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00]]
|
332
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
333
|
+
Processing by UsersController#destroy as HTML
|
334
|
+
Parameters: {"id"=>"1"}
|
335
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
336
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
337
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
338
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
339
|
+
Redirected to http://test.host/users
|
340
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
341
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
343
|
+
--------------------------------------------------------
|
344
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
345
|
+
--------------------------------------------------------
|
346
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
347
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00]]
|
348
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
349
|
+
Processing by UsersController#update as HTML
|
350
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
351
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
352
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
353
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 23:04:43 UTC +00:00]]
|
354
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
355
|
+
Redirected to http://test.host/users/1
|
356
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
357
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
358
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
359
|
+
-------------------------------------------------------------
|
360
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
361
|
+
-------------------------------------------------------------
|
362
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
363
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 23:10:59 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Thu, 06 Feb 2014 23:10:59 UTC +00:00]]
|
364
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
365
|
+
Processing by UsersController#destroy as HTML
|
366
|
+
Parameters: {"id"=>"1"}
|
367
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
368
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
369
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
370
|
+
Redirected to http://test.host/users/1
|
371
|
+
Completed 302 Found in 18ms (ActiveRecord: 0.3ms)
|
372
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
373
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
374
|
+
----------------------------------------------------------
|
375
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
376
|
+
----------------------------------------------------------
|
377
|
+
Processing by UsersController#create as HTML
|
378
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
380
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 23:10:59 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 23:10:59 UTC +00:00]]
|
381
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
382
|
+
Redirected to http://test.host/users/1
|
383
|
+
Completed 302 Found in 16ms (ActiveRecord: 0.5ms)
|
384
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
385
|
+
[1m[35m (0.1ms)[0m begin transaction
|
386
|
+
---------------------------------------------------------
|
387
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
388
|
+
---------------------------------------------------------
|
389
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
390
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 06 Feb 2014 23:11:00 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 23:11:00 UTC +00:00]]
|
391
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
392
|
+
Processing by UsersController#destroy as HTML
|
393
|
+
Parameters: {"id"=>"1"}
|
394
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
395
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
396
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
397
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
398
|
+
Redirected to http://test.host/users
|
399
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
400
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
402
|
+
--------------------------------------------------------
|
403
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
404
|
+
--------------------------------------------------------
|
405
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
406
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 06 Feb 2014 23:11:00 UTC +00:00], ["name", "John Doe"], ["updated_at", Thu, 06 Feb 2014 23:11:00 UTC +00:00]]
|
407
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
408
|
+
Processing by UsersController#update as HTML
|
409
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
410
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
411
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
412
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", Thu, 06 Feb 2014 23:11:00 UTC +00:00]]
|
413
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
414
|
+
Redirected to http://test.host/users/1
|
415
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
416
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
data/test/flash_test.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class FlashTest < ActionController::TestCase
|
4
|
+
tests UsersController
|
5
|
+
|
6
|
+
test 'sets notice message on successful creation' do
|
7
|
+
post :create, user: { name: 'John Doe' }
|
8
|
+
assert_equal 'User was successfully created', flash[:notice]
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'sets notice message on successful update' do
|
12
|
+
user = User.create!(name: 'John Doe')
|
13
|
+
put :update, id: user.id, user: { name: 'Another John Doe' }
|
14
|
+
assert_equal 'User was successfully updated', flash[:notice]
|
15
|
+
end
|
16
|
+
|
17
|
+
test 'sets notice message on successful destroy' do
|
18
|
+
user = User.create!(name: 'John Doe')
|
19
|
+
delete :destroy, id: user.id
|
20
|
+
assert_equal 'User was successfully destroyed', flash[:notice]
|
21
|
+
end
|
22
|
+
|
23
|
+
test 'sets alert messages from the controller scope' do
|
24
|
+
begin
|
25
|
+
I18n.backend.store_translations :en,
|
26
|
+
flash: { users: { destroy: { alert: 'Cannot destroy!' } } }
|
27
|
+
|
28
|
+
user = User.create! name: 'Chuck Norris'
|
29
|
+
delete :destroy, id: user.id
|
30
|
+
assert_equal 'Cannot destroy!', flash[:alert]
|
31
|
+
ensure
|
32
|
+
I18n.reload!
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
require 'rails/test_help'
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
|
15
|
+
end
|