symbolink 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.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +38 -0
- data/lib/symbolink/engine.rb +7 -0
- data/lib/symbolink/helper.rb +32 -0
- data/lib/symbolink/version.rb +3 -0
- data/lib/symbolink.rb +5 -0
- data/lib/tasks/symbolink_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -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 +3 -0
- data/test/dummy/app/controllers/users_controller.rb +83 -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 +3 -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 +23 -0
- data/test/dummy/app/views/users/new.html.erb +5 -0
- data/test/dummy/app/views/users/show.html.erb +10 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +61 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20130124123012_create_users.rb +9 -0
- data/test/dummy/db/schema.rb +22 -0
- data/test/dummy/log/development.log +319 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/users.yml +7 -0
- data/test/dummy/test/functional/users_controller_test.rb +49 -0
- data/test/dummy/test/unit/helpers/users_helper_test.rb +4 -0
- data/test/dummy/test/unit/user_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/C25/8D0/sprockets%2F211d039621a004a79758499eb80936d7 +0 -0
- data/test/dummy/tmp/cache/assets/C5E/120/sprockets%2F57d21998d90d028f5229ef45530c4762 +0 -0
- data/test/dummy/tmp/cache/assets/C8C/B80/sprockets%2F371bf96e99717688ed7313a0c53f4212 +0 -0
- data/test/dummy/tmp/cache/assets/CAA/620/sprockets%2F87b209c0c9da28094a8d5581a21262c6 +0 -0
- data/test/dummy/tmp/cache/assets/CB2/610/sprockets%2F7449213f9b13bd567258bf82023fd5a5 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/B70/sprockets%2F4050a4e5062ab95c9f32e9b6940821ea +0 -0
- data/test/dummy/tmp/cache/assets/CF0/1D0/sprockets%2F6fc757c2c8329244ca95d6909865bbc2 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D46/650/sprockets%2Ff56253b5f374fff1a33fbbc9881c9124 +0 -0
- data/test/dummy/tmp/cache/assets/D48/060/sprockets%2F79ab9dd58536a33fe9a4de34342df721 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D67/B60/sprockets%2F5f1a0d05e77ca8b9a1fc2a47e17a8174 +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/symbolink_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +208 -0
@@ -0,0 +1,319 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Started GET "/" for 127.0.0.1 at 2013-01-24 16:28:19 +0400
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
|
6
|
+
ActionController::RoutingError (No route matches [GET] "/"):
|
7
|
+
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
|
8
|
+
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
9
|
+
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
|
10
|
+
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
|
11
|
+
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
|
12
|
+
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
|
13
|
+
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
14
|
+
rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
|
15
|
+
rack (1.4.4) lib/rack/runtime.rb:17:in `call'
|
16
|
+
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
17
|
+
rack (1.4.4) lib/rack/lock.rb:15:in `call'
|
18
|
+
actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
|
19
|
+
railties (3.2.11) lib/rails/engine.rb:479:in `call'
|
20
|
+
railties (3.2.11) lib/rails/application.rb:223:in `call'
|
21
|
+
rack (1.4.4) lib/rack/content_length.rb:14:in `call'
|
22
|
+
railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in `call'
|
23
|
+
rack (1.4.4) lib/rack/handler/webrick.rb:59:in `service'
|
24
|
+
C:/apps/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
|
25
|
+
C:/apps/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
|
26
|
+
C:/apps/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
|
27
|
+
|
28
|
+
|
29
|
+
Rendered C:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (19.0ms)
|
30
|
+
Connecting to database specified by database.yml
|
31
|
+
|
32
|
+
|
33
|
+
Started GET "/" for 127.0.0.1 at 2013-01-24 16:31:02 +0400
|
34
|
+
Connecting to database specified by database.yml
|
35
|
+
Processing by UsersController#index as HTML
|
36
|
+
Completed 500 Internal Server Error in 110ms
|
37
|
+
|
38
|
+
ActiveRecord::StatementInvalid (Could not find table 'users'):
|
39
|
+
app/controllers/users_controller.rb:5:in `index'
|
40
|
+
|
41
|
+
|
42
|
+
Rendered C:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
|
43
|
+
Rendered C:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
|
44
|
+
Rendered C:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (66.0ms)
|
45
|
+
Connecting to database specified by database.yml
|
46
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
47
|
+
[1m[35m (5.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
48
|
+
[1m[36m (4.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
49
|
+
[1m[35m (0.0ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
50
|
+
Migrating to CreateUsers (20130124123012)
|
51
|
+
[1m[36m (1.0ms)[0m [1mbegin transaction[0m
|
52
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
|
53
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130124123012')[0m
|
54
|
+
[1m[35m (4.0ms)[0m commit transaction
|
55
|
+
[1m[36m (0.0ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
56
|
+
|
57
|
+
|
58
|
+
Started GET "/" for 127.0.0.1 at 2013-01-24 16:33:05 +0400
|
59
|
+
Connecting to database specified by database.yml
|
60
|
+
Processing by UsersController#index as HTML
|
61
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" [0m
|
62
|
+
Rendered users/index.html.erb within layouts/application (21.0ms)
|
63
|
+
Compiled scaffold.css (0ms) (pid 20652)
|
64
|
+
Compiled users.css (0ms) (pid 20652)
|
65
|
+
Compiled application.css (148ms) (pid 20652)
|
66
|
+
Compiled jquery.js (3ms) (pid 20652)
|
67
|
+
Compiled jquery_ujs.js (0ms) (pid 20652)
|
68
|
+
Compiled users.js (0ms) (pid 20652)
|
69
|
+
Compiled application.js (139ms) (pid 20652)
|
70
|
+
Completed 200 OK in 644ms (Views: 533.1ms | ActiveRecord: 14.0ms)
|
71
|
+
|
72
|
+
|
73
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
74
|
+
Served asset /application.css - 200 OK (31ms)
|
75
|
+
|
76
|
+
|
77
|
+
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
78
|
+
Served asset /users.js - 200 OK (2ms)
|
79
|
+
|
80
|
+
|
81
|
+
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
82
|
+
Served asset /users.css - 200 OK (3ms)
|
83
|
+
|
84
|
+
|
85
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
86
|
+
Served asset /scaffold.css - 200 OK (3ms)
|
87
|
+
|
88
|
+
|
89
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
90
|
+
Served asset /jquery_ujs.js - 200 OK (3ms)
|
91
|
+
|
92
|
+
|
93
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
94
|
+
Served asset /jquery.js - 200 OK (4ms)
|
95
|
+
|
96
|
+
|
97
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 16:33:07 +0400
|
98
|
+
Served asset /application.js - 200 OK (6ms)
|
99
|
+
|
100
|
+
|
101
|
+
Started GET "/users/new" for 127.0.0.1 at 2013-01-24 16:33:10 +0400
|
102
|
+
Processing by UsersController#new as HTML
|
103
|
+
Rendered users/_form.html.erb (9.0ms)
|
104
|
+
Rendered users/new.html.erb within layouts/application (28.0ms)
|
105
|
+
Completed 200 OK in 42ms (Views: 35.0ms | ActiveRecord: 0.0ms)
|
106
|
+
|
107
|
+
|
108
|
+
Started POST "/users" for 127.0.0.1 at 2013-01-24 16:33:14 +0400
|
109
|
+
Processing by UsersController#create as HTML
|
110
|
+
Parameters: {"utf8"=>"✓", "authenticity_token"=>"vHbLobIHdOKDT43hl5YxBwMVxvb/kFD53mxevG4/FqE=", "user"=>{"name"=>"Usser"}, "commit"=>"Create User"}
|
111
|
+
[1m[35m (0.0ms)[0m begin transaction
|
112
|
+
[1m[36mSQL (68.0ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Thu, 24 Jan 2013 12:33:14 UTC +00:00], ["name", "Usser"], ["updated_at", Thu, 24 Jan 2013 12:33:14 UTC +00:00]]
|
113
|
+
[1m[35m (4.0ms)[0m commit transaction
|
114
|
+
Redirected to http://localhost:3000/users/1
|
115
|
+
Completed 302 Found in 76ms (ActiveRecord: 72.0ms)
|
116
|
+
|
117
|
+
|
118
|
+
Started GET "/users/1" for 127.0.0.1 at 2013-01-24 16:33:14 +0400
|
119
|
+
Processing by UsersController#show as HTML
|
120
|
+
Parameters: {"id"=>"1"}
|
121
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
122
|
+
Rendered users/show.html.erb within layouts/application (1.0ms)
|
123
|
+
Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.0ms)
|
124
|
+
|
125
|
+
|
126
|
+
Started GET "/users" for 127.0.0.1 at 2013-01-24 16:33:16 +0400
|
127
|
+
Processing by UsersController#index as HTML
|
128
|
+
[1m[35mUser Load (1.0ms)[0m SELECT "users".* FROM "users"
|
129
|
+
Rendered users/index.html.erb within layouts/application (2.0ms)
|
130
|
+
Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 1.0ms)
|
131
|
+
|
132
|
+
|
133
|
+
Started GET "/users" for 127.0.0.1 at 2013-01-24 16:42:50 +0400
|
134
|
+
Connecting to database specified by database.yml
|
135
|
+
Processing by UsersController#index as HTML
|
136
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" [0m
|
137
|
+
Rendered users/index.html.erb within layouts/application (21.0ms)
|
138
|
+
Completed 200 OK in 260ms (Views: 145.0ms | ActiveRecord: 11.0ms)
|
139
|
+
|
140
|
+
|
141
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
142
|
+
Served asset /application.css - 304 Not Modified (11ms)
|
143
|
+
|
144
|
+
|
145
|
+
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
146
|
+
Served asset /users.js - 304 Not Modified (1ms)
|
147
|
+
|
148
|
+
|
149
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
150
|
+
Served asset /scaffold.css - 304 Not Modified (2ms)
|
151
|
+
|
152
|
+
|
153
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
154
|
+
Served asset /jquery.js - 304 Not Modified (3ms)
|
155
|
+
|
156
|
+
|
157
|
+
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
158
|
+
Served asset /users.css - 304 Not Modified (1ms)
|
159
|
+
|
160
|
+
|
161
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
162
|
+
Served asset /jquery_ujs.js - 304 Not Modified (2ms)
|
163
|
+
|
164
|
+
|
165
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 16:42:52 +0400
|
166
|
+
Served asset /application.js - 304 Not Modified (38ms)
|
167
|
+
|
168
|
+
|
169
|
+
Started DELETE "/users/1" for 127.0.0.1 at 2013-01-24 16:43:29 +0400
|
170
|
+
Processing by UsersController#destroy as HTML
|
171
|
+
Parameters: {"authenticity_token"=>"vHbLobIHdOKDT43hl5YxBwMVxvb/kFD53mxevG4/FqE=", "id"=>"1"}
|
172
|
+
[1m[35mUser Load (1.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
173
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
174
|
+
[1m[35mSQL (21.0ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
175
|
+
[1m[36m (6.0ms)[0m [1mcommit transaction[0m
|
176
|
+
Redirected to http://localhost:3000/users
|
177
|
+
Completed 302 Found in 31ms (ActiveRecord: 28.0ms)
|
178
|
+
|
179
|
+
|
180
|
+
Started GET "/users" for 127.0.0.1 at 2013-01-24 16:43:29 +0400
|
181
|
+
Processing by UsersController#index as HTML
|
182
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users"
|
183
|
+
Rendered users/index.html.erb within layouts/application (0.0ms)
|
184
|
+
Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
|
185
|
+
|
186
|
+
|
187
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 16:43:29 +0400
|
188
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
189
|
+
|
190
|
+
|
191
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-01-24 16:43:29 +0400
|
192
|
+
Served asset /scaffold.css - 304 Not Modified (0ms)
|
193
|
+
|
194
|
+
|
195
|
+
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-01-24 16:43:30 +0400
|
196
|
+
Served asset /users.css - 304 Not Modified (0ms)
|
197
|
+
|
198
|
+
|
199
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:30 +0400
|
200
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
201
|
+
|
202
|
+
|
203
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:30 +0400
|
204
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
205
|
+
|
206
|
+
|
207
|
+
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:30 +0400
|
208
|
+
Served asset /users.js - 304 Not Modified (1ms)
|
209
|
+
|
210
|
+
|
211
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:30 +0400
|
212
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
213
|
+
|
214
|
+
|
215
|
+
Started GET "/users/new" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
216
|
+
Processing by UsersController#new as HTML
|
217
|
+
Rendered users/_form.html.erb (8.0ms)
|
218
|
+
Rendered users/new.html.erb within layouts/application (31.0ms)
|
219
|
+
Completed 200 OK in 44ms (Views: 43.0ms | ActiveRecord: 0.0ms)
|
220
|
+
|
221
|
+
|
222
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
223
|
+
Served asset /application.css - 304 Not Modified (0ms)
|
224
|
+
|
225
|
+
|
226
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
227
|
+
Served asset /scaffold.css - 304 Not Modified (0ms)
|
228
|
+
|
229
|
+
|
230
|
+
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
231
|
+
Served asset /users.css - 304 Not Modified (1ms)
|
232
|
+
|
233
|
+
|
234
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
235
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
236
|
+
|
237
|
+
|
238
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
239
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
240
|
+
|
241
|
+
|
242
|
+
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
243
|
+
Served asset /users.js - 304 Not Modified (0ms)
|
244
|
+
|
245
|
+
|
246
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 16:43:32 +0400
|
247
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
248
|
+
|
249
|
+
|
250
|
+
Started GET "/users" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
251
|
+
Processing by UsersController#index as HTML
|
252
|
+
[1m[36mUser Load (1.0ms)[0m [1mSELECT "users".* FROM "users" [0m
|
253
|
+
Rendered users/index.html.erb within layouts/application (0.0ms)
|
254
|
+
Compiled scaffold.css (1ms) (pid 17524)
|
255
|
+
Compiled application.css (0ms) (pid 17524)
|
256
|
+
Completed 200 OK in 75ms (Views: 73.0ms | ActiveRecord: 1.0ms)
|
257
|
+
|
258
|
+
|
259
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
260
|
+
Served asset /application.css - 304 Not Modified (7ms)
|
261
|
+
|
262
|
+
|
263
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
264
|
+
Served asset /scaffold.css - 200 OK (5ms)
|
265
|
+
|
266
|
+
|
267
|
+
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
268
|
+
Served asset /users.css - 304 Not Modified (0ms)
|
269
|
+
|
270
|
+
|
271
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
272
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
273
|
+
|
274
|
+
|
275
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
276
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
277
|
+
|
278
|
+
|
279
|
+
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
280
|
+
Served asset /users.js - 304 Not Modified (0ms)
|
281
|
+
|
282
|
+
|
283
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:42 +0400
|
284
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
285
|
+
|
286
|
+
|
287
|
+
Started GET "/users/new" for 127.0.0.1 at 2013-01-24 16:44:44 +0400
|
288
|
+
Processing by UsersController#new as HTML
|
289
|
+
Rendered users/_form.html.erb (3.0ms)
|
290
|
+
Rendered users/new.html.erb within layouts/application (6.0ms)
|
291
|
+
Completed 200 OK in 18ms (Views: 18.0ms | ActiveRecord: 0.0ms)
|
292
|
+
|
293
|
+
|
294
|
+
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
295
|
+
Served asset /application.css - 304 Not Modified (1ms)
|
296
|
+
|
297
|
+
|
298
|
+
Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
299
|
+
Served asset /scaffold.css - 304 Not Modified (0ms)
|
300
|
+
|
301
|
+
|
302
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
303
|
+
Served asset /jquery_ujs.js - 304 Not Modified (0ms)
|
304
|
+
|
305
|
+
|
306
|
+
Started GET "/assets/users.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
307
|
+
Served asset /users.js - 304 Not Modified (0ms)
|
308
|
+
|
309
|
+
|
310
|
+
Started GET "/assets/users.css?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
311
|
+
Served asset /users.css - 304 Not Modified (0ms)
|
312
|
+
|
313
|
+
|
314
|
+
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
315
|
+
Served asset /jquery.js - 304 Not Modified (0ms)
|
316
|
+
|
317
|
+
|
318
|
+
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-24 16:44:45 +0400
|
319
|
+
Served asset /application.js - 304 Not Modified (1ms)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby.exe
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class UsersControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@user = users(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:users)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create user" do
|
20
|
+
assert_difference('User.count') do
|
21
|
+
post :create, user: { name: @user.name }
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to user_path(assigns(:user))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show user" do
|
28
|
+
get :show, id: @user
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @user
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update user" do
|
38
|
+
put :update, id: @user, user: { name: @user.name }
|
39
|
+
assert_redirected_to user_path(assigns(:user))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy user" do
|
43
|
+
assert_difference('User.count', -1) do
|
44
|
+
delete :destroy, id: @user
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to users_path
|
48
|
+
end
|
49
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
17524
|
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
|