test/dummy/log/test.log in serializer-1.0.1 vs test/dummy/log/test.log in serializer-1.0.2

- old
+ new

@@ -13319,5 +13319,394 @@ SQL (0.3ms) UPDATE "users" SET "updated_at" = ?, "settings" = ? WHERE "users"."id" = 593363170 [["updated_at", Wed, 30 Oct 2013 03:17:20 UTC +00:00], ["settings", "---\n:fb_share: true\n:tw_share: true\n"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/users/593363170 Completed 302 Found in 4ms (ActiveRecord: 0.4ms)  (0.3ms) rollback transaction +  (0.3ms) begin transaction + Fixture Delete (0.2ms) DELETE FROM "accounts" + Fixture Insert (0.1ms) INSERT INTO "accounts" ("name", "created_at", "updated_at", "id") VALUES ('Awesome', '2013-11-01 06:31:10', '2013-11-01 06:31:10', 593363170) + Fixture Delete (0.1ms) DELETE FROM "users" + Fixture Insert (0.1ms) INSERT INTO "users" ("name", "email", "settings", "created_at", "updated_at", "id", "account_id") VALUES ('Kevin', 'info@example.com', '--- +:fb_share: true +:tw_share: true +', '2013-11-01 06:31:10', '2013-11-01 06:31:10', 593363170, 593363170) + Fixture Insert (0.0ms) INSERT INTO "users" ("name", "email", "created_at", "updated_at", "id") VALUES ('Kevin', 'info@example.com', '2013-11-01 06:31:10', '2013-11-01 06:31:10', 815823836) +  (3.6ms) commit transaction +  (0.1ms) begin transaction +--------------------------------------------------------------- +AccountTest: test_accepts_nested_attributes_for_users_on_create +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["name", "Personal"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] + SQL (0.2ms) INSERT INTO "users" ("account_id", "created_at", "settings", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 593363171], ["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "---\n:tw_share: false\n:fb_share: false\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Account Load (0.1ms) SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = ? ORDER BY "accounts"."id" ASC LIMIT 1 [["id", 593363171]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +--------------------------------------------------------------- +AccountTest: test_accepts_nested_attributes_for_users_on_update +--------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "accounts" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["name", "Personal"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "users" ("account_id", "created_at", "settings", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 593363171], ["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."account_id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["account_id", 593363171]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "users" SET "account_id" = ?, "updated_at" = ?, "settings" = ? WHERE "users"."id" = 815823837 [["account_id", nil], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "--- {}\n"]] + SQL (0.1ms) INSERT INTO "users" ("account_id", "created_at", "settings", "updated_at") VALUES (?, ?, ?, ?) [["account_id", 593363171], ["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "---\n:tw_share: true\n:fb_share: false\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------------- +MainControllerTest: test_should_get_index +----------------------------------------- +Processing by MainController#index as HTML + Rendered main/index.html.haml within layouts/application (1.9ms) +Completed 200 OK in 13ms (Views: 13.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------- +SerializerTest: test_serializer_is_a_module +------------------------------------------- +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------------------------------------------------ +SubscriptionTest: test_accepts_nested_attributes_from_belongs_to_side_of_association +------------------------------------------------------------------------------------ +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" ("created_at", "settings", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "subscriptions" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00], ["user_id", 815823837]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Subscription Load (0.1ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."user_id" = ? ORDER BY "subscriptions"."id" ASC LIMIT 1 [["user_id", 815823837]] +  (0.0ms) SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 815823837]] + SQL (0.1ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:notifications: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 815823837]] + Subscription Load (0.0ms) SELECT "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."user_id" = ? ORDER BY "subscriptions"."id" ASC LIMIT 1 [["user_id", 815823837]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:notifications: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:10 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 815823837]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------- +UserCreateTest: test_create_user +-------------------------------- +Started GET "/users/new" for 127.0.0.1 at 2013-10-31 23:31:10 -0700 +Processing by UsersController#new as HTML + Rendered users/_fields.html.haml (7.2ms) + Rendered users/_form.html.haml (13.8ms) +Completed 200 OK in 20ms (Views: 19.9ms | ActiveRecord: 0.0ms) + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Started POST "/users" for 127.0.0.1 at 2013-10-31 23:31:11 -0700 +Processing by UsersController#create as HTML + Parameters: {"name"=>"Kevin", "email"=>"info@example.com", "fb_share"=>"0", "tw_share"=>"0", "tb_share"=>"false"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "users" ("created_at", "settings", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/users/815823837 +Completed 302 Found in 5ms (ActiveRecord: 0.3ms) +Started GET "/users/815823837" for 127.0.0.1 at 2013-10-31 23:31:11 -0700 +Processing by UsersController#show as HTML + Parameters: {"id"=>"815823837"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "815823837"]] + Rendered users/_user.html.haml (2.0ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------- +UserTest: test_a_missing_default +-------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +----------------------------- +UserTest: test_a_missing_type +----------------------------- +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +---------------------------------------------------- +UserTest: test_configuring_array_and_hash_attributes +---------------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "alpha@example.com"], ["name", "Alpha"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "omega@example.com"], ["name", "Omega"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------- +UserTest: test_configuring_string_attributes +-------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "alpha@example.com"], ["name", "Alpha"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "omega@example.com"], ["name", "Omega"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------- +UserTest: test_configuring_symbol_attributes +-------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +----------------------- +UserTest: test_defaults +----------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------------------- +UserTest: test_falsify_then_truthify_attributes +----------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "---\n:fb_share: false\n:tw_share: false\n:tb_share: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:fb_share: true\n:tw_share: true\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +------------------------------- +UserTest: test_missing_settings +------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 815823836]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823836 [["settings", "---\n:fb_share: false\n:tw_share: false\n:tb_share: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +----------------------------------------------- +UserTest: test_truthify_then_falsify_attributes +----------------------------------------------- +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "kevin@example.com"], ["name", "Kevin"], ["settings", "---\n:fb_share: true\n:tw_share: true\n:tb_share: true\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "users" SET "settings" = ?, "updated_at" = ? WHERE "users"."id" = 815823837 [["settings", "---\n:fb_share: false\n:tw_share: false\n:tb_share: false\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------- +UserUpdateTest: test_update_user +-------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Started GET "/users/593363170/edit" for 127.0.0.1 at 2013-10-31 23:31:11 -0700 +Processing by UsersController#edit as HTML + Parameters: {"id"=>"593363170"} + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]] + Rendered users/_fields.html.haml (1.0ms) + Rendered users/_form.html.haml (2.4ms) +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) +Started POST "/users" for 127.0.0.1 at 2013-10-31 23:31:11 -0700 +Processing by UsersController#create as HTML + Parameters: {"name"=>"Kevin", "email"=>"info@example.com", "fb_share"=>"0", "tw_share"=>"0", "tb_share"=>"true"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "settings", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/users/815823837 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +Started GET "/users/815823837" for 127.0.0.1 at 2013-10-31 23:31:11 -0700 +Processing by UsersController#show as HTML + Parameters: {"id"=>"815823837"} + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "815823837"]] + Rendered users/_user.html.haml (0.2ms) +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +-------------------------------------------- +UsersControllerTest: test_should_create_user +-------------------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +  (0.1ms) SELECT COUNT(*) FROM "users" +Processing by UsersController#create as HTML + Parameters: {"user"=>{"id"=>"593363170", "account_id"=>"593363170", "name"=>"Kevin", "email"=>"info@example.com", "settings"=>{"fb_share"=>true, "tw_share"=>true}, "created_at"=>"2013-11-01 06:31:10 UTC", "updated_at"=>"2013-11-01 06:31:10 UTC"}} +WARNING: Can't mass-assign protected attributes for User: id, account_id, settings, created_at, updated_at + protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:47:in `block in process_removed_attributes' + /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:376:in `add' + /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:447:in `warn' + protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:45:in `process_removed_attributes' + protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:10:in `sanitize' + protected_attributes (1.0.3) lib/active_model/mass_assignment_security.rb:346:in `sanitize_for_mass_assignment' + protected_attributes (1.0.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:58:in `assign_attributes' + protected_attributes (1.0.3) lib/active_record/mass_assignment_security/core.rb:16:in `initialize' + activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new' + activerecord (4.0.0) lib/active_record/inheritance.rb:27:in `new' + protected_attributes (1.0.3) lib/active_record/mass_assignment_security/persistence.rb:45:in `create' + app/controllers/users_controller.rb:35:in `create' + actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action' + actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action' + activesupport (4.0.0) lib/active_support/callbacks.rb:383:in `_run__3705253993169237033__process_action__callbacks' + activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks' + actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action' + activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process' + actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process' + actionpack (4.0.0) lib/action_controller/test_case.rb:569:in `process' + actionpack (4.0.0) lib/action_controller/test_case.rb:64:in `process' + actionpack (4.0.0) lib/action_controller/test_case.rb:475:in `post' + test/functional/users_controller_test.rb:24:in `block (2 levels) in <class:UsersControllerTest>' + activesupport (4.0.0) lib/active_support/testing/assertions.rb:71:in `assert_difference' + test/functional/users_controller_test.rb:23:in `block in <class:UsersControllerTest>' + minitest (4.7.5) lib/minitest/unit.rb:1258:in `run' + minitest (4.7.5) lib/minitest/unit.rb:933:in `block in _run_suite' + minitest (4.7.5) lib/minitest/unit.rb:926:in `map' + minitest (4.7.5) lib/minitest/unit.rb:926:in `_run_suite' + minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `block in _run_suites' + minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `map' + minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `_run_suites' + minitest (4.7.5) lib/minitest/unit.rb:877:in `_run_anything' + minitest (4.7.5) lib/minitest/unit.rb:1085:in `run_tests' + minitest (4.7.5) lib/minitest/unit.rb:1072:in `block in _run' + minitest (4.7.5) lib/minitest/unit.rb:1071:in `each' + minitest (4.7.5) lib/minitest/unit.rb:1071:in `_run' + minitest (4.7.5) lib/minitest/unit.rb:1059:in `run' + minitest (4.7.5) lib/minitest/unit.rb:795:in `block in autorun' +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "name", "settings", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["email", "info@example.com"], ["name", "Kevin"], ["settings", "--- {}\n"], ["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/users/815823837 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) +  (0.1ms) SELECT COUNT(*) FROM "users" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +--------------------------------------------- +UsersControllerTest: test_should_destroy_user +--------------------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +  (0.1ms) SELECT COUNT(*) FROM "users" +Processing by UsersController#destroy as HTML + Parameters: {"id"=>"593363170"} + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 593363170]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/users +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) +  (0.1ms) SELECT COUNT(*) FROM "users" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +----------------------------------------- +UsersControllerTest: test_should_get_edit +----------------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Processing by UsersController#edit as HTML + Parameters: {"id"=>"593363170"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]] + Rendered users/_fields.html.haml (1.3ms) + Rendered users/_form.html.haml (2.9ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------ +UsersControllerTest: test_should_get_index +------------------------------------------ + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Processing by UsersController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +---------------------------------------- +UsersControllerTest: test_should_get_new +---------------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Processing by UsersController#new as HTML + Rendered users/_fields.html.haml (1.0ms) + Rendered users/_form.html.haml (2.2ms) +Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +------------------------------------------ +UsersControllerTest: test_should_show_user +------------------------------------------ + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Processing by UsersController#show as HTML + Parameters: {"id"=>"593363170"} + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]] + Rendered users/_user.html.haml (0.3ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +-------------------------------------------- +UsersControllerTest: test_should_update_user +-------------------------------------------- + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 593363170]] +Processing by UsersController#update as HTML + Parameters: {"user"=>{"id"=>"593363170", "account_id"=>"593363170", "name"=>"Kevin", "email"=>"info@example.com", "settings"=>{"fb_share"=>true, "tw_share"=>true}, "created_at"=>"2013-11-01 06:31:10 UTC", "updated_at"=>"2013-11-01 06:31:10 UTC"}, "id"=>"593363170"} + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "593363170"]] +WARNING: Can't mass-assign protected attributes for User: id, account_id, settings, created_at, updated_at + protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:47:in `block in process_removed_attributes' + /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:376:in `add' + /Users/kevin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/logger.rb:447:in `warn' + protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:45:in `process_removed_attributes' + protected_attributes (1.0.3) lib/active_model/mass_assignment_security/sanitizer.rb:10:in `sanitize' + protected_attributes (1.0.3) lib/active_model/mass_assignment_security.rb:346:in `sanitize_for_mass_assignment' + activerecord (4.0.0) lib/active_record/attribute_assignment.rb:21:in `assign_attributes' + app/controllers/users_controller.rb:43:in `update' + actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action' + actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action' + actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action' + activesupport (4.0.0) lib/active_support/callbacks.rb:383:in `_run__3705253993169237033__process_action__callbacks' + activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks' + actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' + activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument' + activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument' + activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument' + actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action' + actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action' + activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action' + actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process' + actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process' + actionpack (4.0.0) lib/action_controller/test_case.rb:569:in `process' + actionpack (4.0.0) lib/action_controller/test_case.rb:64:in `process' + actionpack (4.0.0) lib/action_controller/test_case.rb:487:in `put' + test/functional/users_controller_test.rb:41:in `block in <class:UsersControllerTest>' + minitest (4.7.5) lib/minitest/unit.rb:1258:in `run' + minitest (4.7.5) lib/minitest/unit.rb:933:in `block in _run_suite' + minitest (4.7.5) lib/minitest/unit.rb:926:in `map' + minitest (4.7.5) lib/minitest/unit.rb:926:in `_run_suite' + minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `block in _run_suites' + minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `map' + minitest (4.7.5) lib/minitest/parallel_each.rb:71:in `_run_suites' + minitest (4.7.5) lib/minitest/unit.rb:877:in `_run_anything' + minitest (4.7.5) lib/minitest/unit.rb:1085:in `run_tests' + minitest (4.7.5) lib/minitest/unit.rb:1072:in `block in _run' + minitest (4.7.5) lib/minitest/unit.rb:1071:in `each' + minitest (4.7.5) lib/minitest/unit.rb:1071:in `_run' + minitest (4.7.5) lib/minitest/unit.rb:1059:in `run' + minitest (4.7.5) lib/minitest/unit.rb:795:in `block in autorun' +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "users" SET "updated_at" = ?, "settings" = ? WHERE "users"."id" = 593363170 [["updated_at", Fri, 01 Nov 2013 06:31:11 UTC +00:00], ["settings", "---\n:fb_share: true\n:tw_share: true\n"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/users/593363170 +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) +  (0.3ms) rollback transaction