erroneous 0.0.5 → 0.0.6

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.
Files changed (68) hide show
  1. data/README.rdoc +1 -20
  2. data/Rakefile +25 -0
  3. data/lib/erroneous/version.rb +1 -1
  4. data/test/dummy/Rakefile +7 -0
  5. data/test/dummy/app/assets/javascripts/application.js +3 -0
  6. data/test/dummy/app/assets/javascripts/main.js +0 -0
  7. data/test/dummy/app/assets/javascripts/people.js +0 -0
  8. data/test/dummy/app/assets/stylesheets/application.css +39 -0
  9. data/test/dummy/app/assets/stylesheets/main.css +0 -0
  10. data/test/dummy/app/assets/stylesheets/people.css +0 -0
  11. data/test/dummy/app/controllers/application_controller.rb +3 -0
  12. data/test/dummy/app/controllers/main_controller.rb +10 -0
  13. data/test/dummy/app/controllers/people_controller.rb +49 -0
  14. data/test/dummy/app/helpers/application_helper.rb +2 -0
  15. data/test/dummy/app/helpers/main_helper.rb +2 -0
  16. data/test/dummy/app/helpers/people_helper.rb +2 -0
  17. data/test/dummy/app/models/person.rb +16 -0
  18. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  19. data/test/dummy/app/views/main/index.html.erb +5 -0
  20. data/test/dummy/app/views/people/_form.html.erb +27 -0
  21. data/test/dummy/app/views/people/edit.html.erb +3 -0
  22. data/test/dummy/app/views/people/index.html.erb +16 -0
  23. data/test/dummy/app/views/people/new.html.erb +3 -0
  24. data/test/dummy/app/views/people/show.html.erb +27 -0
  25. data/test/dummy/config/application.rb +45 -0
  26. data/test/dummy/config/boot.rb +10 -0
  27. data/test/dummy/config/database.yml +17 -0
  28. data/test/dummy/config/environment.rb +5 -0
  29. data/test/dummy/config/environments/development.rb +30 -0
  30. data/test/dummy/config/environments/production.rb +60 -0
  31. data/test/dummy/config/environments/test.rb +39 -0
  32. data/test/dummy/config/initializers/other.rb +2 -0
  33. data/test/dummy/config/locales/en.yml +1 -0
  34. data/test/dummy/config/routes.rb +7 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/db/development.sqlite3 +0 -0
  37. data/test/dummy/db/migrate/20110109192118_create_people.rb +12 -0
  38. data/test/dummy/db/schema.rb +25 -0
  39. data/test/dummy/db/test.sqlite3 +0 -0
  40. data/test/dummy/log/development.log +604 -0
  41. data/test/dummy/log/test.log +286 -0
  42. data/test/dummy/public/favicon.ico +0 -0
  43. data/test/dummy/script/rails +6 -0
  44. data/test/dummy/test/fixtures/people.yml +5 -0
  45. data/test/dummy/test/functional/main_controller_test.rb +10 -0
  46. data/test/dummy/test/functional/people_controller_test.rb +53 -0
  47. data/test/dummy/test/unit/helpers/main_helper_test.rb +4 -0
  48. data/test/dummy/test/unit/helpers/people_helper_test.rb +4 -0
  49. data/test/dummy/test/unit/person_test.rb +7 -0
  50. data/test/dummy/tmp/cache/assets/BAB/A00/sprockets%2F347f335128024408181207cbc0461526 +0 -0
  51. data/test/dummy/tmp/cache/assets/C77/F30/sprockets%2F021780432569bfa6c8135d5d4111f2e8 +0 -0
  52. data/test/dummy/tmp/cache/assets/D06/B40/sprockets%2F25fca4643219052b0d5c66cf2c71f72f +0 -0
  53. data/test/dummy/tmp/cache/assets/D11/430/sprockets%2F25ea8d6063b1eb98361b1196f2fce807 +0 -0
  54. data/test/dummy/tmp/cache/assets/D24/5A0/sprockets%2F3a89b583dd80975d1e0968e730de5bc9 +0 -0
  55. data/test/dummy/tmp/cache/assets/D26/080/sprockets%2F14492c596885cafe7932045e4e7efd3f +0 -0
  56. data/test/dummy/tmp/cache/assets/D2D/490/sprockets%2F52514897c01dab621a0d9892aafb1ea2 +0 -0
  57. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  58. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  59. data/test/dummy/tmp/cache/assets/D58/1E0/sprockets%2Fdd863e40bd669f77bb549b257d88d6b5 +0 -0
  60. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  61. data/test/dummy/tmp/cache/assets/D87/E80/sprockets%2F576f5985cf4d78c5dd3d8ae55d22d7e1 +0 -0
  62. data/test/dummy/tmp/cache/assets/D8D/EA0/sprockets%2Fe64949cb167a0aa27a33a1adf1d544be +0 -0
  63. data/test/dummy/tmp/cache/assets/DA5/7E0/sprockets%2F87a5f378354ce6e80dda84ab1cfd06f3 +0 -0
  64. data/test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19 +0 -0
  65. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  66. data/test/erroneous_test.rb +7 -0
  67. data/test/test_helper.rb +8 -0
  68. metadata +180 -31
@@ -0,0 +1,286 @@
1
+ Processing by MainController#index as HTML
2
+ Rendered main/index.html.erb within layouts/application (10.1ms)
3
+ Completed 200 OK in 82ms (Views: 81.8ms | ActiveRecord: 0.0ms)
4
+ Processing by MainController#index as HTML
5
+ Rendered main/index.html.erb within layouts/application (8.0ms)
6
+ Completed 200 OK in 35ms (Views: 35.0ms | ActiveRecord: 0.0ms)
7
+ Processing by MainController#index as HTML
8
+ Rendered main/index.html.erb within layouts/application (8.1ms)
9
+ Completed 200 OK in 67ms (Views: 66.6ms | ActiveRecord: 0.0ms)
10
+ Fixture Delete (0.3ms) DELETE FROM "people"
11
+ Fixture Insert (0.2ms) INSERT INTO "people" ("name", "url", "email", "phone", "created_at", "updated_at", "id") VALUES ('Kevin', 'http://ksylvest.com/', 'info@ksylvest.com', '(555) 555-5555', '2011-10-23 06:09:59', '2011-10-23 06:09:59', 712064548)
12
+ Processing by MainController#index as HTML
13
+ Rendered main/index.html.erb within layouts/application (8.7ms)
14
+ Completed 200 OK in 74ms (Views: 73.9ms | ActiveRecord: 0.0ms)
15
+ Fixture Delete (0.3ms) DELETE FROM "people"
16
+ Fixture Insert (0.2ms) INSERT INTO "people" ("name", "url", "email", "phone", "created_at", "updated_at", "id") VALUES ('Kevin', 'http://ksylvest.com/', 'info@ksylvest.com', '(555) 555-5555', '2011-10-23 06:10:20', '2011-10-23 06:10:20', 712064548)
17
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
18
+  (0.1ms) SELECT COUNT(*) FROM "people"
19
+ Processing by PeopleController#create as HTML
20
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:10:20 UTC", "updated_at"=>"2011-10-23 06:10:20 UTC"}}
21
+ WARNING: Can't mass-assign protected attributes: id
22
+  (0.1ms) SAVEPOINT active_record_1
23
+ SQL (0.7ms) INSERT INTO "people" ("created_at", "email", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:10:20 UTC +00:00], ["email", "info@ksylvest.com"], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["updated_at", Sun, 23 Oct 2011 06:10:20 UTC +00:00], ["url", "http://ksylvest.com/"]]
24
+  (0.0ms) RELEASE SAVEPOINT active_record_1
25
+ Redirected to http://test.host/people/712064549
26
+ Completed 302 Found in 7ms
27
+  (0.1ms) SELECT COUNT(*) FROM "people"
28
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
29
+  (0.1ms) SELECT COUNT(*) FROM "people"
30
+ Processing by PeopleController#destroy as HTML
31
+ Parameters: {"id"=>"712064548"}
32
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
33
+  (0.0ms) SAVEPOINT active_record_1
34
+ SQL (0.3ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 712064548]]
35
+  (0.0ms) RELEASE SAVEPOINT active_record_1
36
+ Redirected to http://test.host/people
37
+ Completed 302 Found in 2ms
38
+  (0.1ms) SELECT COUNT(*) FROM "people" 
39
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
40
+ Processing by PeopleController#edit as HTML
41
+ Parameters: {"id"=>"712064548"}
42
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
43
+ Rendered people/_form.html.erb (4.0ms)
44
+ Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.1ms)
45
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
46
+ Processing by PeopleController#index as HTML
47
+ Person Load (0.1ms) SELECT "people".* FROM "people" 
48
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms)
49
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
50
+ Processing by PeopleController#new as HTML
51
+ Rendered people/_form.html.erb (2.4ms)
52
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
53
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
54
+ Processing by PeopleController#show as HTML
55
+ Parameters: {"id"=>"712064548"}
56
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
57
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
58
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
59
+ Processing by PeopleController#update as HTML
60
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:10:20 UTC", "updated_at"=>"2011-10-23 06:10:20 UTC"}, "id"=>"712064548"}
61
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
62
+  (0.0ms) SAVEPOINT active_record_1
63
+ WARNING: Can't mass-assign protected attributes: id
64
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65
+ Redirected to http://test.host/people/712064548
66
+ Completed 302 Found in 3ms
67
+ Processing by MainController#index as HTML
68
+ Rendered main/index.html.erb within layouts/application (9.4ms)
69
+ Completed 200 OK in 44ms (Views: 43.4ms | ActiveRecord: 0.0ms)
70
+ Fixture Delete (0.3ms) DELETE FROM "people"
71
+ Fixture Insert (0.2ms) INSERT INTO "people" ("name", "url", "email", "phone", "created_at", "updated_at", "id") VALUES ('Kevin', 'http://ksylvest.com/', 'info@ksylvest.com', '(555) 555-5555', '2011-10-23 06:10:59', '2011-10-23 06:10:59', 712064548)
72
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
73
+  (0.1ms) SELECT COUNT(*) FROM "people"
74
+ Processing by PeopleController#create as HTML
75
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:10:59 UTC", "updated_at"=>"2011-10-23 06:10:59 UTC"}}
76
+ WARNING: Can't mass-assign protected attributes: id
77
+  (0.1ms) SAVEPOINT active_record_1
78
+ SQL (0.6ms) INSERT INTO "people" ("created_at", "email", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:10:59 UTC +00:00], ["email", "info@ksylvest.com"], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["updated_at", Sun, 23 Oct 2011 06:10:59 UTC +00:00], ["url", "http://ksylvest.com/"]]
79
+  (0.0ms) RELEASE SAVEPOINT active_record_1
80
+ Redirected to http://test.host/people/712064549
81
+ Completed 302 Found in 7ms
82
+  (0.1ms) SELECT COUNT(*) FROM "people"
83
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
84
+  (0.1ms) SELECT COUNT(*) FROM "people"
85
+ Processing by PeopleController#destroy as HTML
86
+ Parameters: {"id"=>"712064548"}
87
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
88
+  (0.0ms) SAVEPOINT active_record_1
89
+ SQL (0.3ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 712064548]]
90
+  (0.0ms) RELEASE SAVEPOINT active_record_1
91
+ Redirected to http://test.host/people
92
+ Completed 302 Found in 2ms
93
+  (0.0ms) SELECT COUNT(*) FROM "people" 
94
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
95
+ Processing by PeopleController#edit as HTML
96
+ Parameters: {"id"=>"712064548"}
97
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
98
+ Rendered people/_form.html.erb (3.8ms)
99
+ Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.1ms)
100
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
101
+ Processing by PeopleController#index as HTML
102
+ Person Load (0.1ms) SELECT "people".* FROM "people" 
103
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms)
104
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
105
+ Processing by PeopleController#new as HTML
106
+ Rendered people/_form.html.erb (2.4ms)
107
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
108
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
109
+ Processing by PeopleController#show as HTML
110
+ Parameters: {"id"=>"712064548"}
111
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
112
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
113
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
114
+ Processing by PeopleController#update as HTML
115
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:10:59 UTC", "updated_at"=>"2011-10-23 06:10:59 UTC"}, "id"=>"712064548"}
116
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
117
+  (0.1ms) SAVEPOINT active_record_1
118
+ WARNING: Can't mass-assign protected attributes: id
119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
120
+ Redirected to http://test.host/people/712064548
121
+ Completed 302 Found in 5ms
122
+ Processing by MainController#index as HTML
123
+ Rendered main/index.html.erb within layouts/application (11.8ms)
124
+ Completed 200 OK in 50ms (Views: 49.5ms | ActiveRecord: 0.0ms)
125
+ Fixture Delete (0.3ms) DELETE FROM "people"
126
+ Fixture Insert (0.2ms) INSERT INTO "people" ("name", "url", "email", "phone", "created_at", "updated_at", "id") VALUES ('Kevin', 'http://ksylvest.com/', 'info@ksylvest.com', '(555) 555-5555', '2011-10-23 06:16:35', '2011-10-23 06:16:35', 712064548)
127
+ Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
128
+  (0.0ms) SELECT COUNT(*) FROM "people"
129
+ Processing by PeopleController#create as HTML
130
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:16:35 UTC", "updated_at"=>"2011-10-23 06:16:35 UTC"}}
131
+ WARNING: Can't mass-assign protected attributes: id
132
+  (0.1ms) SAVEPOINT active_record_1
133
+ SQL (0.8ms) INSERT INTO "people" ("created_at", "email", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:16:35 UTC +00:00], ["email", "info@ksylvest.com"], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["updated_at", Sun, 23 Oct 2011 06:16:35 UTC +00:00], ["url", "http://ksylvest.com/"]]
134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135
+ Redirected to http://test.host/people/712064549
136
+ Completed 302 Found in 9ms
137
+  (0.1ms) SELECT COUNT(*) FROM "people"
138
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
139
+  (0.1ms) SELECT COUNT(*) FROM "people"
140
+ Processing by PeopleController#destroy as HTML
141
+ Parameters: {"id"=>"712064548"}
142
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
143
+  (0.1ms) SAVEPOINT active_record_1
144
+ SQL (0.4ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 712064548]]
145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
146
+ Redirected to http://test.host/people
147
+ Completed 302 Found in 3ms
148
+  (0.1ms) SELECT COUNT(*) FROM "people" 
149
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
150
+ Processing by PeopleController#edit as HTML
151
+ Parameters: {"id"=>"712064548"}
152
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
153
+ Rendered people/_form.html.erb (5.6ms)
154
+ Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.1ms)
155
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
156
+ Processing by PeopleController#index as HTML
157
+ Person Load (0.1ms) SELECT "people".* FROM "people" 
158
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
159
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
160
+ Processing by PeopleController#new as HTML
161
+ Rendered people/_form.html.erb (2.6ms)
162
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
163
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
164
+ Processing by PeopleController#show as HTML
165
+ Parameters: {"id"=>"712064548"}
166
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
167
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
168
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
169
+ Processing by PeopleController#update as HTML
170
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:16:35 UTC", "updated_at"=>"2011-10-23 06:16:35 UTC"}, "id"=>"712064548"}
171
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
172
+  (0.1ms) SAVEPOINT active_record_1
173
+ WARNING: Can't mass-assign protected attributes: id
174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
175
+ Redirected to http://test.host/people/712064548
176
+ Completed 302 Found in 4ms
177
+ Processing by MainController#index as HTML
178
+ Rendered main/index.html.erb within layouts/application (8.6ms)
179
+ Completed 200 OK in 37ms (Views: 36.2ms | ActiveRecord: 0.0ms)
180
+ Fixture Delete (0.4ms) DELETE FROM "people"
181
+ Fixture Insert (0.2ms) INSERT INTO "people" ("name", "url", "email", "phone", "created_at", "updated_at", "id") VALUES ('Kevin', 'http://ksylvest.com/', 'info@ksylvest.com', '(555) 555-5555', '2011-10-23 06:23:26', '2011-10-23 06:23:26', 712064548)
182
+ Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
183
+  (0.0ms) SELECT COUNT(*) FROM "people"
184
+ Processing by PeopleController#create as HTML
185
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:23:26 UTC", "updated_at"=>"2011-10-23 06:23:26 UTC"}}
186
+ WARNING: Can't mass-assign protected attributes: id
187
+  (0.1ms) SAVEPOINT active_record_1
188
+ SQL (0.5ms) INSERT INTO "people" ("created_at", "email", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:23:26 UTC +00:00], ["email", "info@ksylvest.com"], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["updated_at", Sun, 23 Oct 2011 06:23:26 UTC +00:00], ["url", "http://ksylvest.com/"]]
189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190
+ Redirected to http://test.host/people/712064549
191
+ Completed 302 Found in 30ms
192
+  (0.1ms) SELECT COUNT(*) FROM "people"
193
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
194
+  (0.0ms) SELECT COUNT(*) FROM "people"
195
+ Processing by PeopleController#destroy as HTML
196
+ Parameters: {"id"=>"712064548"}
197
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
198
+  (0.1ms) SAVEPOINT active_record_1
199
+ SQL (0.3ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 712064548]]
200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
201
+ Redirected to http://test.host/people
202
+ Completed 302 Found in 3ms
203
+  (0.1ms) SELECT COUNT(*) FROM "people" 
204
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
205
+ Processing by PeopleController#edit as HTML
206
+ Parameters: {"id"=>"712064548"}
207
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
208
+ Rendered people/_form.html.erb (3.3ms)
209
+ Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms)
210
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
211
+ Processing by PeopleController#index as HTML
212
+ Person Load (0.1ms) SELECT "people".* FROM "people" 
213
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
214
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
215
+ Processing by PeopleController#new as HTML
216
+ Rendered people/_form.html.erb (2.7ms)
217
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms)
218
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
219
+ Processing by PeopleController#show as HTML
220
+ Parameters: {"id"=>"712064548"}
221
+ Person Load (0.0ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
222
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
223
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
224
+ Processing by PeopleController#update as HTML
225
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:23:26 UTC", "updated_at"=>"2011-10-23 06:23:26 UTC"}, "id"=>"712064548"}
226
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
227
+ WARNING: Can't mass-assign protected attributes: id
228
+  (0.1ms) SAVEPOINT active_record_1
229
+  (0.0ms) RELEASE SAVEPOINT active_record_1
230
+ Redirected to http://test.host/people/712064548
231
+ Completed 302 Found in 6ms
232
+ Processing by MainController#index as HTML
233
+ Rendered main/index.html.erb within layouts/application (12.8ms)
234
+ Completed 200 OK in 78ms (Views: 77.7ms | ActiveRecord: 0.0ms)
235
+ Fixture Delete (0.4ms) DELETE FROM "people"
236
+ Fixture Insert (0.2ms) INSERT INTO "people" ("name", "url", "email", "phone", "created_at", "updated_at", "id") VALUES ('Kevin', 'http://ksylvest.com/', 'info@ksylvest.com', '(555) 555-5555', '2011-10-23 06:25:23', '2011-10-23 06:25:23', 712064548)
237
+ Person Load (0.3ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
238
+  (0.0ms) SELECT COUNT(*) FROM "people"
239
+ Processing by PeopleController#create as HTML
240
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:25:23 UTC", "updated_at"=>"2011-10-23 06:25:23 UTC"}}
241
+ WARNING: Can't mass-assign protected attributes: id
242
+  (0.1ms) SAVEPOINT active_record_1
243
+ SQL (0.6ms) INSERT INTO "people" ("created_at", "email", "name", "phone", "updated_at", "url") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 23 Oct 2011 06:25:23 UTC +00:00], ["email", "info@ksylvest.com"], ["name", "Kevin"], ["phone", "(555) 555-5555"], ["updated_at", Sun, 23 Oct 2011 06:25:23 UTC +00:00], ["url", "http://ksylvest.com/"]]
244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
245
+ Redirected to http://test.host/people/712064549
246
+ Completed 302 Found in 33ms
247
+  (0.2ms) SELECT COUNT(*) FROM "people"
248
+ Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
249
+  (0.1ms) SELECT COUNT(*) FROM "people"
250
+ Processing by PeopleController#destroy as HTML
251
+ Parameters: {"id"=>"712064548"}
252
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
253
+  (0.1ms) SAVEPOINT active_record_1
254
+ SQL (0.4ms) DELETE FROM "people" WHERE "people"."id" = ? [["id", 712064548]]
255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
256
+ Redirected to http://test.host/people
257
+ Completed 302 Found in 4ms
258
+  (0.1ms) SELECT COUNT(*) FROM "people" 
259
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
260
+ Processing by PeopleController#edit as HTML
261
+ Parameters: {"id"=>"712064548"}
262
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
263
+ Rendered people/_form.html.erb (4.1ms)
264
+ Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.1ms)
265
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
266
+ Processing by PeopleController#index as HTML
267
+ Person Load (0.2ms) SELECT "people".* FROM "people" 
268
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)
269
+ Person Load (0.2ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
270
+ Processing by PeopleController#new as HTML
271
+ Rendered people/_form.html.erb (4.4ms)
272
+ Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
273
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
274
+ Processing by PeopleController#show as HTML
275
+ Parameters: {"id"=>"712064548"}
276
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
277
+ Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
278
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
279
+ Processing by PeopleController#update as HTML
280
+ Parameters: {"person"=>{"id"=>"712064548", "name"=>"Kevin", "url"=>"http://ksylvest.com/", "email"=>"info@ksylvest.com", "phone"=>"(555) 555-5555", "created_at"=>"2011-10-23 06:25:23 UTC", "updated_at"=>"2011-10-23 06:25:23 UTC"}, "id"=>"712064548"}
281
+ Person Load (0.1ms) SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
282
+ WARNING: Can't mass-assign protected attributes: id
283
+  (0.1ms) SAVEPOINT active_record_1
284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
285
+ Redirected to http://test.host/people/712064548
286
+ Completed 302 Found in 11ms
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
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,5 @@
1
+ kevin:
2
+ name: Kevin
3
+ url: http://ksylvest.com/
4
+ email: info@ksylvest.com
5
+ phone: (555) 555-5555
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class MainControllerTest < ActionController::TestCase
4
+
5
+ test "should get index" do
6
+ get :index
7
+ assert_response :success
8
+ end
9
+
10
+ end
@@ -0,0 +1,53 @@
1
+ require 'test_helper'
2
+
3
+ class PeopleControllerTest < ActionController::TestCase
4
+
5
+ fixtures :all
6
+
7
+ setup do
8
+ @person = people(:kevin)
9
+ end
10
+
11
+ test "should get index" do
12
+ get :index
13
+ assert_response :success
14
+ assert_not_nil assigns(:people)
15
+ end
16
+
17
+ test "should get new" do
18
+ get :new
19
+ assert_response :success
20
+ end
21
+
22
+ test "should create person" do
23
+ assert_difference('Person.count') do
24
+ post :create, :person => @person.attributes
25
+ end
26
+
27
+ assert_redirected_to person_path(assigns(:person))
28
+ end
29
+
30
+ test "should show person" do
31
+ get :show, :id => @person.id
32
+ assert_response :success
33
+ end
34
+
35
+ test "should get edit" do
36
+ get :edit, :id => @person.id
37
+ assert_response :success
38
+ end
39
+
40
+ test "should update person" do
41
+ put :update, :id => @person.id, :person => @person.attributes
42
+ assert_redirected_to person_path(assigns(:person))
43
+ end
44
+
45
+ test "should destroy person" do
46
+ assert_difference('Person.count', -1) do
47
+ delete :destroy, :id => @person.id
48
+ end
49
+
50
+ assert_redirected_to people_path
51
+ end
52
+
53
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class MainHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PeopleHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PersonTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ErroneousTest < ActiveSupport::TestCase
4
+ test "erroneous is a module" do
5
+ assert_kind_of Module, Erroneous
6
+ end
7
+ end
@@ -0,0 +1,8 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require "rails/test_help"
5
+
6
+ Rails.backtrace_cleaner.remove_silencers!
7
+
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }