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.
- data/README.rdoc +1 -20
- data/Rakefile +25 -0
- data/lib/erroneous/version.rb +1 -1
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +3 -0
- data/test/dummy/app/assets/javascripts/main.js +0 -0
- data/test/dummy/app/assets/javascripts/people.js +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +39 -0
- data/test/dummy/app/assets/stylesheets/main.css +0 -0
- data/test/dummy/app/assets/stylesheets/people.css +0 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/main_controller.rb +10 -0
- data/test/dummy/app/controllers/people_controller.rb +49 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/main_helper.rb +2 -0
- data/test/dummy/app/helpers/people_helper.rb +2 -0
- data/test/dummy/app/models/person.rb +16 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/main/index.html.erb +5 -0
- data/test/dummy/app/views/people/_form.html.erb +27 -0
- data/test/dummy/app/views/people/edit.html.erb +3 -0
- data/test/dummy/app/views/people/index.html.erb +16 -0
- data/test/dummy/app/views/people/new.html.erb +3 -0
- data/test/dummy/app/views/people/show.html.erb +27 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +17 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/other.rb +2 -0
- data/test/dummy/config/locales/en.yml +1 -0
- data/test/dummy/config/routes.rb +7 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20110109192118_create_people.rb +12 -0
- data/test/dummy/db/schema.rb +25 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +604 -0
- data/test/dummy/log/test.log +286 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/people.yml +5 -0
- data/test/dummy/test/functional/main_controller_test.rb +10 -0
- data/test/dummy/test/functional/people_controller_test.rb +53 -0
- data/test/dummy/test/unit/helpers/main_helper_test.rb +4 -0
- data/test/dummy/test/unit/helpers/people_helper_test.rb +4 -0
- data/test/dummy/test/unit/person_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/BAB/A00/sprockets%2F347f335128024408181207cbc0461526 +0 -0
- data/test/dummy/tmp/cache/assets/C77/F30/sprockets%2F021780432569bfa6c8135d5d4111f2e8 +0 -0
- data/test/dummy/tmp/cache/assets/D06/B40/sprockets%2F25fca4643219052b0d5c66cf2c71f72f +0 -0
- data/test/dummy/tmp/cache/assets/D11/430/sprockets%2F25ea8d6063b1eb98361b1196f2fce807 +0 -0
- data/test/dummy/tmp/cache/assets/D24/5A0/sprockets%2F3a89b583dd80975d1e0968e730de5bc9 +0 -0
- data/test/dummy/tmp/cache/assets/D26/080/sprockets%2F14492c596885cafe7932045e4e7efd3f +0 -0
- data/test/dummy/tmp/cache/assets/D2D/490/sprockets%2F52514897c01dab621a0d9892aafb1ea2 +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
- data/test/dummy/tmp/cache/assets/D58/1E0/sprockets%2Fdd863e40bd669f77bb549b257d88d6b5 +0 -0
- data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
- data/test/dummy/tmp/cache/assets/D87/E80/sprockets%2F576f5985cf4d78c5dd3d8ae55d22d7e1 +0 -0
- data/test/dummy/tmp/cache/assets/D8D/EA0/sprockets%2Fe64949cb167a0aa27a33a1adf1d544be +0 -0
- data/test/dummy/tmp/cache/assets/DA5/7E0/sprockets%2F87a5f378354ce6e80dda84ab1cfd06f3 +0 -0
- data/test/dummy/tmp/cache/assets/DA7/530/sprockets%2Fe36b8fcf5914a3a6bf058abfe7367b19 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/erroneous_test.rb +7 -0
- data/test/test_helper.rb +8 -0
- 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
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
|
11
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
|
16
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
18
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
23
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
25
|
+
Redirected to http://test.host/people/712064549
|
|
26
|
+
Completed 302 Found in 7ms
|
|
27
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
28
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
29
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
30
|
+
Processing by PeopleController#destroy as HTML
|
|
31
|
+
Parameters: {"id"=>"712064548"}
|
|
32
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
33
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
34
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 712064548]]
|
|
35
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
36
|
+
Redirected to http://test.host/people
|
|
37
|
+
Completed 302 Found in 2ms
|
|
38
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "people" [0m
|
|
39
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
40
|
+
Processing by PeopleController#edit as HTML
|
|
41
|
+
Parameters: {"id"=>"712064548"}
|
|
42
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
43
|
+
Rendered people/_form.html.erb (4.0ms)
|
|
44
|
+
Completed 200 OK in 18ms (Views: 16.9ms | ActiveRecord: 0.1ms)
|
|
45
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
46
|
+
Processing by PeopleController#index as HTML
|
|
47
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
|
48
|
+
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.1ms)
|
|
49
|
+
[1m[35mPerson Load (0.1ms)[0m 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
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
54
|
+
Processing by PeopleController#show as HTML
|
|
55
|
+
Parameters: {"id"=>"712064548"}
|
|
56
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
57
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
|
58
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPerson Load (0.0ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
62
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
63
|
+
WARNING: Can't mass-assign protected attributes: id
|
|
64
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
|
71
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
73
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
78
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
80
|
+
Redirected to http://test.host/people/712064549
|
|
81
|
+
Completed 302 Found in 7ms
|
|
82
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
83
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
84
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
85
|
+
Processing by PeopleController#destroy as HTML
|
|
86
|
+
Parameters: {"id"=>"712064548"}
|
|
87
|
+
[1m[36mPerson Load (0.0ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
88
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
89
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 712064548]]
|
|
90
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
91
|
+
Redirected to http://test.host/people
|
|
92
|
+
Completed 302 Found in 2ms
|
|
93
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "people" [0m
|
|
94
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
95
|
+
Processing by PeopleController#edit as HTML
|
|
96
|
+
Parameters: {"id"=>"712064548"}
|
|
97
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
98
|
+
Rendered people/_form.html.erb (3.8ms)
|
|
99
|
+
Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.1ms)
|
|
100
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
101
|
+
Processing by PeopleController#index as HTML
|
|
102
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
|
103
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms)
|
|
104
|
+
[1m[35mPerson Load (0.1ms)[0m 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
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
109
|
+
Processing by PeopleController#show as HTML
|
|
110
|
+
Parameters: {"id"=>"712064548"}
|
|
111
|
+
[1m[35mPerson Load (0.0ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
112
|
+
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
|
113
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
117
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
118
|
+
WARNING: Can't mass-assign protected attributes: id
|
|
119
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "people"[0m
|
|
126
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
128
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
133
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
135
|
+
Redirected to http://test.host/people/712064549
|
|
136
|
+
Completed 302 Found in 9ms
|
|
137
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
138
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
139
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
140
|
+
Processing by PeopleController#destroy as HTML
|
|
141
|
+
Parameters: {"id"=>"712064548"}
|
|
142
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
144
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 712064548]]
|
|
145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
146
|
+
Redirected to http://test.host/people
|
|
147
|
+
Completed 302 Found in 3ms
|
|
148
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "people" [0m
|
|
149
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
150
|
+
Processing by PeopleController#edit as HTML
|
|
151
|
+
Parameters: {"id"=>"712064548"}
|
|
152
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
153
|
+
Rendered people/_form.html.erb (5.6ms)
|
|
154
|
+
Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.1ms)
|
|
155
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
156
|
+
Processing by PeopleController#index as HTML
|
|
157
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
|
158
|
+
Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
|
|
159
|
+
[1m[35mPerson Load (0.1ms)[0m 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
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
164
|
+
Processing by PeopleController#show as HTML
|
|
165
|
+
Parameters: {"id"=>"712064548"}
|
|
166
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
167
|
+
Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
|
|
168
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
172
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
173
|
+
WARNING: Can't mass-assign protected attributes: id
|
|
174
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "people"[0m
|
|
181
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
183
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
188
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
190
|
+
Redirected to http://test.host/people/712064549
|
|
191
|
+
Completed 302 Found in 30ms
|
|
192
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
193
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
194
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "people"
|
|
195
|
+
Processing by PeopleController#destroy as HTML
|
|
196
|
+
Parameters: {"id"=>"712064548"}
|
|
197
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
198
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
199
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 712064548]]
|
|
200
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
201
|
+
Redirected to http://test.host/people
|
|
202
|
+
Completed 302 Found in 3ms
|
|
203
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "people" [0m
|
|
204
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
205
|
+
Processing by PeopleController#edit as HTML
|
|
206
|
+
Parameters: {"id"=>"712064548"}
|
|
207
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
208
|
+
Rendered people/_form.html.erb (3.3ms)
|
|
209
|
+
Completed 200 OK in 13ms (Views: 12.0ms | ActiveRecord: 0.1ms)
|
|
210
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
211
|
+
Processing by PeopleController#index as HTML
|
|
212
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" [0m
|
|
213
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
|
|
214
|
+
[1m[35mPerson Load (0.1ms)[0m 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
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
219
|
+
Processing by PeopleController#show as HTML
|
|
220
|
+
Parameters: {"id"=>"712064548"}
|
|
221
|
+
[1m[35mPerson Load (0.0ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
222
|
+
Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
|
223
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
227
|
+
WARNING: Can't mass-assign protected attributes: id
|
|
228
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
229
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "people"[0m
|
|
236
|
+
[1m[35mFixture Insert (0.2ms)[0m 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
|
+
[1m[36mPerson Load (0.3ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
238
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
243
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
245
|
+
Redirected to http://test.host/people/712064549
|
|
246
|
+
Completed 302 Found in 33ms
|
|
247
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "people"
|
|
248
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
249
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "people"
|
|
250
|
+
Processing by PeopleController#destroy as HTML
|
|
251
|
+
Parameters: {"id"=>"712064548"}
|
|
252
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
253
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
254
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "people" WHERE "people"."id" = ?[0m [["id", 712064548]]
|
|
255
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
256
|
+
Redirected to http://test.host/people
|
|
257
|
+
Completed 302 Found in 4ms
|
|
258
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "people" [0m
|
|
259
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
260
|
+
Processing by PeopleController#edit as HTML
|
|
261
|
+
Parameters: {"id"=>"712064548"}
|
|
262
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", "712064548"]]
|
|
263
|
+
Rendered people/_form.html.erb (4.1ms)
|
|
264
|
+
Completed 200 OK in 16ms (Views: 14.9ms | ActiveRecord: 0.1ms)
|
|
265
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", 712064548]]
|
|
266
|
+
Processing by PeopleController#index as HTML
|
|
267
|
+
[1m[36mPerson Load (0.2ms)[0m [1mSELECT "people".* FROM "people" [0m
|
|
268
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)
|
|
269
|
+
[1m[35mPerson Load (0.2ms)[0m 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
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["id", 712064548]]
|
|
274
|
+
Processing by PeopleController#show as HTML
|
|
275
|
+
Parameters: {"id"=>"712064548"}
|
|
276
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
277
|
+
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
|
|
278
|
+
[1m[36mPerson Load (0.1ms)[0m [1mSELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPerson Load (0.1ms)[0m SELECT "people".* FROM "people" WHERE "people"."id" = ? LIMIT 1 [["id", "712064548"]]
|
|
282
|
+
WARNING: Can't mass-assign protected attributes: id
|
|
283
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
284
|
+
[1m[35m (0.0ms)[0m 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,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
|
|
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
|
data/test/test_helper.rb
ADDED