(0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 02:29:23.300401"], ["updated_at", "2018-09-20 02:29:23.300401"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.308231"], ["updated_at", "2018-09-20 02:29:23.308231"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.316868"], ["updated_at", "2018-09-20 02:29:23.316868"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.319458"], ["updated_at", "2018-09-20 02:29:23.319458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.329804"], ["updated_at", "2018-09-20 02:29:23.329804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 02:29:23.335743"], ["updated_at", "2018-09-20 02:29:23.335743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 02:29:23.336648"], ["updated_at", "2018-09-20 02:29:23.336648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 02:29:23.451920"], ["updated_at", "2018-09-20 02:29:23.451920"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-20 02:29:23.453751"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 02:29:23.454831"], ["updated_at", "2018-09-20 02:29:23.454831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 02:29:23.455799"], ["updated_at", "2018-09-20 02:29:23.455799"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.459149"], ["updated_at", "2018-09-20 02:29:23.459149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.462876"], ["updated_at", "2018-09-20 02:29:23.462876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.464477"], ["updated_at", "2018-09-20 02:29:23.464477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.467306"], ["updated_at", "2018-09-20 02:29:23.467306"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.468143"], ["updated_at", "2018-09-20 02:29:23.468143"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.471106"], ["updated_at", "2018-09-20 02:29:23.471106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.472061"], ["updated_at", "2018-09-20 02:29:23.472061"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.478481"], ["updated_at", "2018-09-20 02:29:23.478481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.2ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 02:29:23.485259"], ["updated_at", "2018-09-20 02:29:23.485259"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.489743"], ["updated_at", "2018-09-20 02:29:23.489743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.490435"], ["updated_at", "2018-09-20 02:29:23.490435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.491171"], ["updated_at", "2018-09-20 02:29:23.491171"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.495636"], ["updated_at", "2018-09-20 02:29:23.495636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.499797"], ["updated_at", "2018-09-20 02:29:23.499797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 02:29:23.505440"], ["updated_at", "2018-09-20 02:29:23.505440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 02:29:23.507288"], ["updated_at", "2018-09-20 02:29:23.507288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.516079"], ["updated_at", "2018-09-20 02:29:23.516079"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.521208"], ["updated_at", "2018-09-20 02:29:23.521208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.521980"], ["updated_at", "2018-09-20 02:29:23.521980"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.523920"], ["updated_at", "2018-09-20 02:29:23.523920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.524750"], ["updated_at", "2018-09-20 02:29:23.524750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 02:29:23.527064"], ["updated_at", "2018-09-20 02:29:23.527064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 02:29:23.527946"], ["updated_at", "2018-09-20 02:29:23.527946"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.528966"], ["updated_at", "2018-09-20 02:29:23.528966"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.530902"], ["updated_at", "2018-09-20 02:29:23.530902"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.534657"], ["updated_at", "2018-09-20 02:29:23.534657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.535390"], ["updated_at", "2018-09-20 02:29:23.535390"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.545462"], ["updated_at", "2018-09-20 02:29:23.545462"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.546379"], ["updated_at", "2018-09-20 02:29:23.546379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.554357"], ["updated_at", "2018-09-20 02:29:23.554357"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.555162"], ["updated_at", "2018-09-20 02:29:23.555162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.564280"], ["updated_at", "2018-09-20 02:29:23.564280"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.566623"], ["updated_at", "2018-09-20 02:29:23.566623"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 02:29:23.567570"], ["updated_at", "2018-09-20 02:29:23.567570"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.570880"], ["updated_at", "2018-09-20 02:29:23.570880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.571716"], ["updated_at", "2018-09-20 02:29:23.571716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.573531"], ["updated_at", "2018-09-20 02:29:23.573531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.586796"], ["updated_at", "2018-09-20 02:29:23.586796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.588495"], ["updated_at", "2018-09-20 02:29:23.588495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.591303"], ["updated_at", "2018-09-20 02:29:23.591303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.592024"], ["updated_at", "2018-09-20 02:29:23.592024"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 02:29:23.595852"], ["updated_at", "2018-09-20 02:29:23.595852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 02:29:23.596618"], ["updated_at", "2018-09-20 02:29:23.596618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 02:29:23.598258"], ["updated_at", "2018-09-20 02:29:23.598258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 02:29:23.599100"], ["updated_at", "2018-09-20 02:29:23.599100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.605176"], ["updated_at", "2018-09-20 02:29:23.605176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.607001"], ["updated_at", "2018-09-20 02:29:23.607001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.608946"], ["updated_at", "2018-09-20 02:29:23.608946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.611875"], ["updated_at", "2018-09-20 02:29:23.611875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.612611"], ["updated_at", "2018-09-20 02:29:23.612611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.616929"], ["updated_at", "2018-09-20 02:29:23.616929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 02:29:23.619907"], ["updated_at", "2018-09-20 02:29:23.619907"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 02:29:23.620676"], ["updated_at", "2018-09-20 02:29:23.620676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 02:29:23.622215"], ["updated_at", "2018-09-20 02:29:23.622215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 02:29:23.622940"], ["updated_at", "2018-09-20 02:29:23.622940"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.626021"], ["updated_at", "2018-09-20 02:29:23.626021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.626750"], ["updated_at", "2018-09-20 02:29:23.626750"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.631539"], ["updated_at", "2018-09-20 02:29:23.631539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.635905"], ["updated_at", "2018-09-20 02:29:23.635905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.637706"], ["updated_at", "2018-09-20 02:29:23.637706"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.649160"], ["updated_at", "2018-09-20 02:29:23.649160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.650060"], ["updated_at", "2018-09-20 02:29:23.650060"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.650809"], ["updated_at", "2018-09-20 02:29:23.650809"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 02:29:23.660510"], ["updated_at", "2018-09-20 02:29:23.660510"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.662491"], ["updated_at", "2018-09-20 02:29:23.662491"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.665929"], ["updated_at", "2018-09-20 02:29:23.665929"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.670084"], ["updated_at", "2018-09-20 02:29:23.670084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.670835"], ["updated_at", "2018-09-20 02:29:23.670835"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.673027"], ["updated_at", "2018-09-20 02:29:23.673027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.676840"], ["updated_at", "2018-09-20 02:29:23.676840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.677694"], ["updated_at", "2018-09-20 02:29:23.677694"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.679497"], ["updated_at", "2018-09-20 02:29:23.679497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 02:29:23.685387"], ["updated_at", "2018-09-20 02:29:23.685387"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.694998"], ["updated_at", "2018-09-20 02:29:23.694998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:29:23.695922"], ["updated_at", "2018-09-20 02:29:23.695922"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.395645"], ["updated_at", "2018-09-20 02:30:01.395645"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.401490"], ["updated_at", "2018-09-20 02:30:01.401490"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.402351"], ["updated_at", "2018-09-20 02:30:01.402351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.406841"], ["updated_at", "2018-09-20 02:30:01.406841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.407727"], ["updated_at", "2018-09-20 02:30:01.407727"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 02:30:01.413827"], ["updated_at", "2018-09-20 02:30:01.413827"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-20 02:30:01.425574"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 02:30:01.428211"], ["updated_at", "2018-09-20 02:30:01.428211"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 02:30:01.429195"], ["updated_at", "2018-09-20 02:30:01.429195"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.433484"], ["updated_at", "2018-09-20 02:30:01.433484"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.435801"], ["updated_at", "2018-09-20 02:30:01.435801"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 02:30:01.459591"], ["updated_at", "2018-09-20 02:30:01.459591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 02:30:01.462048"], ["updated_at", "2018-09-20 02:30:01.462048"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.472761"], ["updated_at", "2018-09-20 02:30:01.472761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.477350"], ["updated_at", "2018-09-20 02:30:01.477350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.478430"], ["updated_at", "2018-09-20 02:30:01.478430"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 02:30:01.482476"], ["updated_at", "2018-09-20 02:30:01.482476"]]  (0.3ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 02:30:01.483512"], ["updated_at", "2018-09-20 02:30:01.483512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 02:30:01.485305"], ["updated_at", "2018-09-20 02:30:01.485305"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 02:30:01.486206"], ["updated_at", "2018-09-20 02:30:01.486206"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 02:30:01.493537"], ["updated_at", "2018-09-20 02:30:01.493537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.495828"], ["updated_at", "2018-09-20 02:30:01.495828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.499960"], ["updated_at", "2018-09-20 02:30:01.499960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.504325"], ["updated_at", "2018-09-20 02:30:01.504325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.505431"], ["updated_at", "2018-09-20 02:30:01.505431"]]  (0.2ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.516136"], ["updated_at", "2018-09-20 02:30:01.516136"]]  (0.0ms) commit transaction  (0.2ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.517218"], ["updated_at", "2018-09-20 02:30:01.517218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.518238"], ["updated_at", "2018-09-20 02:30:01.518238"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 02:30:01.534073"], ["updated_at", "2018-09-20 02:30:01.534073"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 02:30:01.535080"], ["updated_at", "2018-09-20 02:30:01.535080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 02:30:01.536824"], ["updated_at", "2018-09-20 02:30:01.536824"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 02:30:01.537598"], ["updated_at", "2018-09-20 02:30:01.537598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.541322"], ["updated_at", "2018-09-20 02:30:01.541322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.548321"], ["updated_at", "2018-09-20 02:30:01.548321"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.557092"], ["updated_at", "2018-09-20 02:30:01.557092"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.559564"], ["updated_at", "2018-09-20 02:30:01.559564"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.565022"], ["updated_at", "2018-09-20 02:30:01.565022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 02:30:01.571865"], ["updated_at", "2018-09-20 02:30:01.571865"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.575619"], ["updated_at", "2018-09-20 02:30:01.575619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.576443"], ["updated_at", "2018-09-20 02:30:01.576443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.578770"], ["updated_at", "2018-09-20 02:30:01.578770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.580523"], ["updated_at", "2018-09-20 02:30:01.580523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.601343"], ["updated_at", "2018-09-20 02:30:01.601343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.602311"], ["updated_at", "2018-09-20 02:30:01.602311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.604213"], ["updated_at", "2018-09-20 02:30:01.604213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.607465"], ["updated_at", "2018-09-20 02:30:01.607465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.612069"], ["updated_at", "2018-09-20 02:30:01.612069"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.612816"], ["updated_at", "2018-09-20 02:30:01.612816"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.614493"], ["updated_at", "2018-09-20 02:30:01.614493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.615180"], ["updated_at", "2018-09-20 02:30:01.615180"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.619817"], ["updated_at", "2018-09-20 02:30:01.619817"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.620561"], ["updated_at", "2018-09-20 02:30:01.620561"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.634191"], ["updated_at", "2018-09-20 02:30:01.634191"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.634978"], ["updated_at", "2018-09-20 02:30:01.634978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.640885"], ["updated_at", "2018-09-20 02:30:01.640885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.641782"], ["updated_at", "2018-09-20 02:30:01.641782"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 02:30:01.648988"], ["updated_at", "2018-09-20 02:30:01.648988"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 02:30:01.657686"], ["updated_at", "2018-09-20 02:30:01.657686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 02:30:01.658550"], ["updated_at", "2018-09-20 02:30:01.658550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.659302"], ["updated_at", "2018-09-20 02:30:01.659302"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.661129"], ["updated_at", "2018-09-20 02:30:01.661129"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.661834"], ["updated_at", "2018-09-20 02:30:01.661834"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.663473"], ["updated_at", "2018-09-20 02:30:01.663473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.664195"], ["updated_at", "2018-09-20 02:30:01.664195"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.667035"], ["updated_at", "2018-09-20 02:30:01.667035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.675958"], ["updated_at", "2018-09-20 02:30:01.675958"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.678136"], ["updated_at", "2018-09-20 02:30:01.678136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.680168"], ["updated_at", "2018-09-20 02:30:01.680168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.683304"], ["updated_at", "2018-09-20 02:30:01.683304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.684051"], ["updated_at", "2018-09-20 02:30:01.684051"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.686008"], ["updated_at", "2018-09-20 02:30:01.686008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.687774"], ["updated_at", "2018-09-20 02:30:01.687774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.690850"], ["updated_at", "2018-09-20 02:30:01.690850"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 02:30:01.691658"], ["updated_at", "2018-09-20 02:30:01.691658"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.694335"], ["updated_at", "2018-09-20 02:30:01.694335"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.695066"], ["updated_at", "2018-09-20 02:30:01.695066"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.696756"], ["updated_at", "2018-09-20 02:30:01.696756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.710180"], ["updated_at", "2018-09-20 02:30:01.710180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.714686"], ["updated_at", "2018-09-20 02:30:01.714686"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.757890"], ["updated_at", "2018-09-20 02:30:01.757890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.763014"], ["updated_at", "2018-09-20 02:30:01.763014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.765614"], ["updated_at", "2018-09-20 02:30:01.765614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:01.775586"], ["updated_at", "2018-09-20 02:30:01.775586"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 02:30:01.783594"], ["updated_at", "2018-09-20 02:30:01.783594"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 02:30:01.787221"], ["updated_at", "2018-09-20 02:30:01.787221"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 02:30:01.787936"], ["updated_at", "2018-09-20 02:30:01.787936"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.0ms) begin transaction Country Create (0.2ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 02:30:23.891542"], ["updated_at", "2018-09-20 02:30:23.891542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.932897"], ["updated_at", "2018-09-20 02:30:23.932897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.933850"], ["updated_at", "2018-09-20 02:30:23.933850"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.937331"], ["updated_at", "2018-09-20 02:30:23.937331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.941510"], ["updated_at", "2018-09-20 02:30:23.941510"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.944814"], ["updated_at", "2018-09-20 02:30:23.944814"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.945844"], ["updated_at", "2018-09-20 02:30:23.945844"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 02:30:23.948579"], ["updated_at", "2018-09-20 02:30:23.948579"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 02:30:23.949470"], ["updated_at", "2018-09-20 02:30:23.949470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.950277"], ["updated_at", "2018-09-20 02:30:23.950277"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.956217"], ["updated_at", "2018-09-20 02:30:23.956217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.961108"], ["updated_at", "2018-09-20 02:30:23.961108"]]  (0.0ms) commit transaction  (0.2ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.962068"], ["updated_at", "2018-09-20 02:30:23.962068"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.2ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 02:30:23.972323"], ["updated_at", "2018-09-20 02:30:23.972323"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.2ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.977009"], ["updated_at", "2018-09-20 02:30:23.977009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.977962"], ["updated_at", "2018-09-20 02:30:23.977962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.2ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.984077"], ["updated_at", "2018-09-20 02:30:23.984077"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:23.985364"], ["updated_at", "2018-09-20 02:30:23.985364"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 02:30:23.988110"], ["updated_at", "2018-09-20 02:30:23.988110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 02:30:23.990394"], ["updated_at", "2018-09-20 02:30:23.990394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 02:30:24.010328"], ["updated_at", "2018-09-20 02:30:24.010328"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.012826"], ["updated_at", "2018-09-20 02:30:24.012826"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.021693"], ["updated_at", "2018-09-20 02:30:24.021693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.027039"], ["updated_at", "2018-09-20 02:30:24.027039"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.027825"], ["updated_at", "2018-09-20 02:30:24.027825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.036804"], ["updated_at", "2018-09-20 02:30:24.036804"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.042935"], ["updated_at", "2018-09-20 02:30:24.042935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.043879"], ["updated_at", "2018-09-20 02:30:24.043879"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.052382"], ["updated_at", "2018-09-20 02:30:24.052382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.056331"], ["updated_at", "2018-09-20 02:30:24.056331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.057071"], ["updated_at", "2018-09-20 02:30:24.057071"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 02:30:24.059445"], ["updated_at", "2018-09-20 02:30:24.059445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 02:30:24.060213"], ["updated_at", "2018-09-20 02:30:24.060213"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 02:30:24.061845"], ["updated_at", "2018-09-20 02:30:24.061845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 02:30:24.062553"], ["updated_at", "2018-09-20 02:30:24.062553"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.068674"], ["updated_at", "2018-09-20 02:30:24.068674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.070478"], ["updated_at", "2018-09-20 02:30:24.070478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.073320"], ["updated_at", "2018-09-20 02:30:24.073320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.074013"], ["updated_at", "2018-09-20 02:30:24.074013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.081223"], ["updated_at", "2018-09-20 02:30:24.081223"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.082095"], ["updated_at", "2018-09-20 02:30:24.082095"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.082924"], ["updated_at", "2018-09-20 02:30:24.082924"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.085628"], ["updated_at", "2018-09-20 02:30:24.085628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.086375"], ["updated_at", "2018-09-20 02:30:24.086375"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.088880"], ["updated_at", "2018-09-20 02:30:24.088880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.094139"], ["updated_at", "2018-09-20 02:30:24.094139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.107529"], ["updated_at", "2018-09-20 02:30:24.107529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 02:30:24.111141"], ["updated_at", "2018-09-20 02:30:24.111141"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 02:30:24.111973"], ["updated_at", "2018-09-20 02:30:24.111973"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 02:30:24.113625"], ["updated_at", "2018-09-20 02:30:24.113625"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 02:30:24.114468"], ["updated_at", "2018-09-20 02:30:24.114468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.117518"], ["updated_at", "2018-09-20 02:30:24.117518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.119253"], ["updated_at", "2018-09-20 02:30:24.119253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.122983"], ["updated_at", "2018-09-20 02:30:24.122983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 02:30:24.128045"], ["updated_at", "2018-09-20 02:30:24.128045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-20 02:30:24.129029"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 02:30:24.130325"], ["updated_at", "2018-09-20 02:30:24.130325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 02:30:24.131048"], ["updated_at", "2018-09-20 02:30:24.131048"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.136152"], ["updated_at", "2018-09-20 02:30:24.136152"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.136946"], ["updated_at", "2018-09-20 02:30:24.136946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.138714"], ["updated_at", "2018-09-20 02:30:24.138714"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.142319"], ["updated_at", "2018-09-20 02:30:24.142319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.144873"], ["updated_at", "2018-09-20 02:30:24.144873"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.148797"], ["updated_at", "2018-09-20 02:30:24.148797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.149758"], ["updated_at", "2018-09-20 02:30:24.149758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.156046"], ["updated_at", "2018-09-20 02:30:24.156046"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.156864"], ["updated_at", "2018-09-20 02:30:24.156864"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.170461"], ["updated_at", "2018-09-20 02:30:24.170461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.171268"], ["updated_at", "2018-09-20 02:30:24.171268"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.171988"], ["updated_at", "2018-09-20 02:30:24.171988"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.174354"], ["updated_at", "2018-09-20 02:30:24.174354"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.176309"], ["updated_at", "2018-09-20 02:30:24.176309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.178110"], ["updated_at", "2018-09-20 02:30:24.178110"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.181204"], ["updated_at", "2018-09-20 02:30:24.181204"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 02:30:24.182659"], ["updated_at", "2018-09-20 02:30:24.182659"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.185898"], ["updated_at", "2018-09-20 02:30:24.185898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.190507"], ["updated_at", "2018-09-20 02:30:24.190507"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.195671"], ["updated_at", "2018-09-20 02:30:24.195671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.200179"], ["updated_at", "2018-09-20 02:30:24.200179"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.306371"], ["updated_at", "2018-09-20 02:30:24.306371"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 02:30:24.317179"], ["updated_at", "2018-09-20 02:30:24.317179"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 02:30:24.317936"], ["updated_at", "2018-09-20 02:30:24.317936"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 02:30:24.344208"], ["updated_at", "2018-09-20 02:30:24.344208"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.355433"], ["updated_at", "2018-09-20 02:30:24.355433"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.359451"], ["updated_at", "2018-09-20 02:30:24.359451"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 02:30:24.361661"], ["updated_at", "2018-09-20 02:30:24.361661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 1ms ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.8ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.7ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.7ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.5ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.4ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.3ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.5ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.6ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.9ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 3ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 4ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 4ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.1ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.9ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 3.5ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 0ms ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 3ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 2ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.2ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 2.7ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.4ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 2.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.837439"], ["updated_at", "2018-09-20 22:28:03.837439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.838891"], ["updated_at", "2018-09-20 22:28:03.838891"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.866041"], ["updated_at", "2018-09-20 22:28:03.866041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.866858"], ["updated_at", "2018-09-20 22:28:03.866858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.868812"], ["updated_at", "2018-09-20 22:28:03.868812"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.2ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:28:03.875560"], ["updated_at", "2018-09-20 22:28:03.875560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-20 22:28:03.877105"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:28:03.878605"], ["updated_at", "2018-09-20 22:28:03.878605"]]  (0.0ms) commit transaction  (0.2ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:28:03.879450"], ["updated_at", "2018-09-20 22:28:03.879450"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.884978"], ["updated_at", "2018-09-20 22:28:03.884978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.890121"], ["updated_at", "2018-09-20 22:28:03.890121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.891128"], ["updated_at", "2018-09-20 22:28:03.891128"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.913160"], ["updated_at", "2018-09-20 22:28:03.913160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.2ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.918609"], ["updated_at", "2018-09-20 22:28:03.918609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.927585"], ["updated_at", "2018-09-20 22:28:03.927585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.934570"], ["updated_at", "2018-09-20 22:28:03.934570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.935540"], ["updated_at", "2018-09-20 22:28:03.935540"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.949021"], ["updated_at", "2018-09-20 22:28:03.949021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.949841"], ["updated_at", "2018-09-20 22:28:03.949841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.951755"], ["updated_at", "2018-09-20 22:28:03.951755"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.958120"], ["updated_at", "2018-09-20 22:28:03.958120"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.959841"], ["updated_at", "2018-09-20 22:28:03.959841"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.960681"], ["updated_at", "2018-09-20 22:28:03.960681"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.963153"], ["updated_at", "2018-09-20 22:28:03.963153"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.964984"], ["updated_at", "2018-09-20 22:28:03.964984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.967859"], ["updated_at", "2018-09-20 22:28:03.967859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.969578"], ["updated_at", "2018-09-20 22:28:03.969578"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.972701"], ["updated_at", "2018-09-20 22:28:03.972701"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.975704"], ["updated_at", "2018-09-20 22:28:03.975704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.976430"], ["updated_at", "2018-09-20 22:28:03.976430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.977191"], ["updated_at", "2018-09-20 22:28:03.977191"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.979402"], ["updated_at", "2018-09-20 22:28:03.979402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.980177"], ["updated_at", "2018-09-20 22:28:03.980177"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.982422"], ["updated_at", "2018-09-20 22:28:03.982422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:28:03.983303"], ["updated_at", "2018-09-20 22:28:03.983303"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.985657"], ["updated_at", "2018-09-20 22:28:03.985657"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.987563"], ["updated_at", "2018-09-20 22:28:03.987563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.989195"], ["updated_at", "2018-09-20 22:28:03.989195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:03.992036"], ["updated_at", "2018-09-20 22:28:03.992036"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:28:03.996262"], ["updated_at", "2018-09-20 22:28:03.996262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:28:03.998051"], ["updated_at", "2018-09-20 22:28:03.998051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:28:04.013982"], ["updated_at", "2018-09-20 22:28:04.013982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.023678"], ["updated_at", "2018-09-20 22:28:04.023678"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.024548"], ["updated_at", "2018-09-20 22:28:04.024548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:28:04.029261"], ["updated_at", "2018-09-20 22:28:04.029261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.031165"], ["updated_at", "2018-09-20 22:28:04.031165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.034699"], ["updated_at", "2018-09-20 22:28:04.034699"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:28:04.040164"], ["updated_at", "2018-09-20 22:28:04.040164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.060084"], ["updated_at", "2018-09-20 22:28:04.060084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.061243"], ["updated_at", "2018-09-20 22:28:04.061243"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.062190"], ["updated_at", "2018-09-20 22:28:04.062190"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:28:04.065175"], ["updated_at", "2018-09-20 22:28:04.065175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:28:04.066105"], ["updated_at", "2018-09-20 22:28:04.066105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:28:04.067925"], ["updated_at", "2018-09-20 22:28:04.067925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:28:04.068752"], ["updated_at", "2018-09-20 22:28:04.068752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.071918"], ["updated_at", "2018-09-20 22:28:04.071918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.072695"], ["updated_at", "2018-09-20 22:28:04.072695"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.074895"], ["updated_at", "2018-09-20 22:28:04.074895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.076685"], ["updated_at", "2018-09-20 22:28:04.076685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.079484"], ["updated_at", "2018-09-20 22:28:04.079484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:28:04.083800"], ["updated_at", "2018-09-20 22:28:04.083800"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:28:04.084518"], ["updated_at", "2018-09-20 22:28:04.084518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.085195"], ["updated_at", "2018-09-20 22:28:04.085195"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.086938"], ["updated_at", "2018-09-20 22:28:04.086938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.087642"], ["updated_at", "2018-09-20 22:28:04.087642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:28:04.094022"], ["updated_at", "2018-09-20 22:28:04.094022"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:28:04.095052"], ["updated_at", "2018-09-20 22:28:04.095052"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:28:04.096666"], ["updated_at", "2018-09-20 22:28:04.096666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:28:04.097589"], ["updated_at", "2018-09-20 22:28:04.097589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.104199"], ["updated_at", "2018-09-20 22:28:04.104199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.105148"], ["updated_at", "2018-09-20 22:28:04.105148"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.108057"], ["updated_at", "2018-09-20 22:28:04.108057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.108929"], ["updated_at", "2018-09-20 22:28:04.108929"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.111143"], ["updated_at", "2018-09-20 22:28:04.111143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.115694"], ["updated_at", "2018-09-20 22:28:04.115694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.116470"], ["updated_at", "2018-09-20 22:28:04.116470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.125181"], ["updated_at", "2018-09-20 22:28:04.125181"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.134175"], ["updated_at", "2018-09-20 22:28:04.134175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.135077"], ["updated_at", "2018-09-20 22:28:04.135077"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.2ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:28:04.395096"], ["updated_at", "2018-09-20 22:28:04.395096"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:28:04.397402"], ["updated_at", "2018-09-20 22:28:04.397402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:28:04.398115"], ["updated_at", "2018-09-20 22:28:04.398115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.441364"], ["updated_at", "2018-09-20 22:28:04.441364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.447207"], ["updated_at", "2018-09-20 22:28:04.447207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.451286"], ["updated_at", "2018-09-20 22:28:04.451286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:04.453761"], ["updated_at", "2018-09-20 22:28:04.453761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.2ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:34.966603"], ["updated_at", "2018-09-20 22:28:34.966603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:28:34.974450"], ["updated_at", "2018-09-20 22:28:34.974450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:28:34.975497"], ["updated_at", "2018-09-20 22:28:34.975497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.2ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:28:35.011154"], ["updated_at", "2018-09-20 22:28:35.011154"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.034281"], ["updated_at", "2018-09-20 22:28:35.034281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.039044"], ["updated_at", "2018-09-20 22:28:35.039044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.041529"], ["updated_at", "2018-09-20 22:28:35.041529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.095014"], ["updated_at", "2018-09-20 22:28:35.095014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.096295"], ["updated_at", "2018-09-20 22:28:35.096295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.105389"], ["updated_at", "2018-09-20 22:28:35.105389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.106264"], ["updated_at", "2018-09-20 22:28:35.106264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.112597"], ["updated_at", "2018-09-20 22:28:35.112597"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.113403"], ["updated_at", "2018-09-20 22:28:35.113403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.114175"], ["updated_at", "2018-09-20 22:28:35.114175"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.116831"], ["updated_at", "2018-09-20 22:28:35.116831"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.121495"], ["updated_at", "2018-09-20 22:28:35.121495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.122685"], ["updated_at", "2018-09-20 22:28:35.122685"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.123795"], ["updated_at", "2018-09-20 22:28:35.123795"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.127089"], ["updated_at", "2018-09-20 22:28:35.127089"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.127862"], ["updated_at", "2018-09-20 22:28:35.127862"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.134439"], ["updated_at", "2018-09-20 22:28:35.134439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.138746"], ["updated_at", "2018-09-20 22:28:35.138746"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.140439"], ["updated_at", "2018-09-20 22:28:35.140439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.141130"], ["updated_at", "2018-09-20 22:28:35.141130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.165542"], ["updated_at", "2018-09-20 22:28:35.165542"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.166418"], ["updated_at", "2018-09-20 22:28:35.166418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.168209"], ["updated_at", "2018-09-20 22:28:35.168209"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.172189"], ["updated_at", "2018-09-20 22:28:35.172189"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.174088"], ["updated_at", "2018-09-20 22:28:35.174088"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.175720"], ["updated_at", "2018-09-20 22:28:35.175720"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.178594"], ["updated_at", "2018-09-20 22:28:35.178594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.179357"], ["updated_at", "2018-09-20 22:28:35.179357"]]  (4.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.185785"], ["updated_at", "2018-09-20 22:28:35.185785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.189070"], ["updated_at", "2018-09-20 22:28:35.189070"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:28:35.194563"], ["updated_at", "2018-09-20 22:28:35.194563"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:28:35.195474"], ["updated_at", "2018-09-20 22:28:35.195474"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.196219"], ["updated_at", "2018-09-20 22:28:35.196219"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:28:35.200876"], ["updated_at", "2018-09-20 22:28:35.200876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.202898"], ["updated_at", "2018-09-20 22:28:35.202898"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.206654"], ["updated_at", "2018-09-20 22:28:35.206654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.207443"], ["updated_at", "2018-09-20 22:28:35.207443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.210409"], ["updated_at", "2018-09-20 22:28:35.210409"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.215034"], ["updated_at", "2018-09-20 22:28:35.215034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.221157"], ["updated_at", "2018-09-20 22:28:35.221157"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.223389"], ["updated_at", "2018-09-20 22:28:35.223389"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.227044"], ["updated_at", "2018-09-20 22:28:35.227044"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.227854"], ["updated_at", "2018-09-20 22:28:35.227854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.229528"], ["updated_at", "2018-09-20 22:28:35.229528"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.233069"], ["updated_at", "2018-09-20 22:28:35.233069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.233936"], ["updated_at", "2018-09-20 22:28:35.233936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.236034"], ["updated_at", "2018-09-20 22:28:35.236034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.240174"], ["updated_at", "2018-09-20 22:28:35.240174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.242468"], ["updated_at", "2018-09-20 22:28:35.242468"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.245847"], ["updated_at", "2018-09-20 22:28:35.245847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.250444"], ["updated_at", "2018-09-20 22:28:35.250444"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.252412"], ["updated_at", "2018-09-20 22:28:35.252412"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.257192"], ["updated_at", "2018-09-20 22:28:35.257192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.257946"], ["updated_at", "2018-09-20 22:28:35.257946"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.260421"], ["updated_at", "2018-09-20 22:28:35.260421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.261234"], ["updated_at", "2018-09-20 22:28:35.261234"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.263271"], ["updated_at", "2018-09-20 22:28:35.263271"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:28:35.264097"], ["updated_at", "2018-09-20 22:28:35.264097"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.266242"], ["updated_at", "2018-09-20 22:28:35.266242"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.266935"], ["updated_at", "2018-09-20 22:28:35.266935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:28:35.279399"], ["updated_at", "2018-09-20 22:28:35.279399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.283383"], ["updated_at", "2018-09-20 22:28:35.283383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:28:35.291494"], ["updated_at", "2018-09-20 22:28:35.291494"]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:28:35.307809"], ["updated_at", "2018-09-20 22:28:35.307809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:28:35.310515"], ["updated_at", "2018-09-20 22:28:35.310515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:28:35.319165"], ["updated_at", "2018-09-20 22:28:35.319165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-20 22:28:35.320125"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:28:35.320979"], ["updated_at", "2018-09-20 22:28:35.320979"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:28:35.321716"], ["updated_at", "2018-09-20 22:28:35.321716"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:28:35.325186"], ["updated_at", "2018-09-20 22:28:35.325186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:28:35.326008"], ["updated_at", "2018-09-20 22:28:35.326008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:28:35.327549"], ["updated_at", "2018-09-20 22:28:35.327549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:28:35.328322"], ["updated_at", "2018-09-20 22:28:35.328322"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.332182"], ["updated_at", "2018-09-20 22:28:35.332182"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.333045"], ["updated_at", "2018-09-20 22:28:35.333045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.335418"], ["updated_at", "2018-09-20 22:28:35.335418"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.336197"], ["updated_at", "2018-09-20 22:28:35.336197"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:35.337956"], ["updated_at", "2018-09-20 22:28:35.337956"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:28:35.343552"], ["updated_at", "2018-09-20 22:28:35.343552"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:28:35.344415"], ["updated_at", "2018-09-20 22:28:35.344415"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:28:35.345961"], ["updated_at", "2018-09-20 22:28:35.345961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:28:35.346699"], ["updated_at", "2018-09-20 22:28:35.346699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 13ms (Views: 3.0ms | ActiveRecord: 0.2ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 2], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModel Destroy (0.3ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:28:59.302591"], ["updated_at", "2018-09-20 22:28:59.302591"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:28:59.303792"], ["updated_at", "2018-09-20 22:28:59.303792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:28:59.360212"], ["updated_at", "2018-09-20 22:28:59.360212"]]  (0.1ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.370117"], ["updated_at", "2018-09-20 22:28:59.370117"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.378438"], ["updated_at", "2018-09-20 22:28:59.378438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.380941"], ["updated_at", "2018-09-20 22:28:59.380941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.407104"], ["updated_at", "2018-09-20 22:28:59.407104"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.420099"], ["updated_at", "2018-09-20 22:28:59.420099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.423607"], ["updated_at", "2018-09-20 22:28:59.423607"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.424339"], ["updated_at", "2018-09-20 22:28:59.424339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.430677"], ["updated_at", "2018-09-20 22:28:59.430677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.432587"], ["updated_at", "2018-09-20 22:28:59.432587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.435985"], ["updated_at", "2018-09-20 22:28:59.435985"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.437043"], ["updated_at", "2018-09-20 22:28:59.437043"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:28:59.442062"], ["updated_at", "2018-09-20 22:28:59.442062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-20 22:28:59.443611"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:28:59.444549"], ["updated_at", "2018-09-20 22:28:59.444549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:28:59.445326"], ["updated_at", "2018-09-20 22:28:59.445326"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.448671"], ["updated_at", "2018-09-20 22:28:59.448671"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.449402"], ["updated_at", "2018-09-20 22:28:59.449402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.450123"], ["updated_at", "2018-09-20 22:28:59.450123"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:28:59.453376"], ["updated_at", "2018-09-20 22:28:59.453376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.463728"], ["updated_at", "2018-09-20 22:28:59.463728"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.466273"], ["updated_at", "2018-09-20 22:28:59.466273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.470830"], ["updated_at", "2018-09-20 22:28:59.470830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.476449"], ["updated_at", "2018-09-20 22:28:59.476449"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.477277"], ["updated_at", "2018-09-20 22:28:59.477277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.477998"], ["updated_at", "2018-09-20 22:28:59.477998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.481878"], ["updated_at", "2018-09-20 22:28:59.481878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.482875"], ["updated_at", "2018-09-20 22:28:59.482875"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.493075"], ["updated_at", "2018-09-20 22:28:59.493075"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.493967"], ["updated_at", "2018-09-20 22:28:59.493967"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.496304"], ["updated_at", "2018-09-20 22:28:59.496304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.497124"], ["updated_at", "2018-09-20 22:28:59.497124"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.499537"], ["updated_at", "2018-09-20 22:28:59.499537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.504551"], ["updated_at", "2018-09-20 22:28:59.504551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SmallCompany Create (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.517916"], ["updated_at", "2018-09-20 22:28:59.517916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.518740"], ["updated_at", "2018-09-20 22:28:59.518740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.524170"], ["updated_at", "2018-09-20 22:28:59.524170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.528531"], ["updated_at", "2018-09-20 22:28:59.528531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:28:59.529465"], ["updated_at", "2018-09-20 22:28:59.529465"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.546961"], ["updated_at", "2018-09-20 22:28:59.546961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.548769"], ["updated_at", "2018-09-20 22:28:59.548769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:28:59.554246"], ["updated_at", "2018-09-20 22:28:59.554246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:28:59.559539"], ["updated_at", "2018-09-20 22:28:59.559539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:28:59.560736"], ["updated_at", "2018-09-20 22:28:59.560736"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.561737"], ["updated_at", "2018-09-20 22:28:59.561737"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.564008"], ["updated_at", "2018-09-20 22:28:59.564008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.564879"], ["updated_at", "2018-09-20 22:28:59.564879"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:28:59.569961"], ["updated_at", "2018-09-20 22:28:59.569961"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.571671"], ["updated_at", "2018-09-20 22:28:59.571671"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.575056"], ["updated_at", "2018-09-20 22:28:59.575056"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.576805"], ["updated_at", "2018-09-20 22:28:59.576805"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.578539"], ["updated_at", "2018-09-20 22:28:59.578539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.581911"], ["updated_at", "2018-09-20 22:28:59.581911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.582765"], ["updated_at", "2018-09-20 22:28:59.582765"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.584541"], ["updated_at", "2018-09-20 22:28:59.584541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.589013"], ["updated_at", "2018-09-20 22:28:59.589013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.589724"], ["updated_at", "2018-09-20 22:28:59.589724"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:28:59.591570"], ["updated_at", "2018-09-20 22:28:59.591570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:28:59.592288"], ["updated_at", "2018-09-20 22:28:59.592288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:28:59.593921"], ["updated_at", "2018-09-20 22:28:59.593921"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:28:59.594698"], ["updated_at", "2018-09-20 22:28:59.594698"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.598578"], ["updated_at", "2018-09-20 22:28:59.598578"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.599426"], ["updated_at", "2018-09-20 22:28:59.599426"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.601192"], ["updated_at", "2018-09-20 22:28:59.601192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:28:59.607149"], ["updated_at", "2018-09-20 22:28:59.607149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:28:59.607881"], ["updated_at", "2018-09-20 22:28:59.607881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:28:59.609369"], ["updated_at", "2018-09-20 22:28:59.609369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:28:59.610199"], ["updated_at", "2018-09-20 22:28:59.610199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.2ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.619310"], ["updated_at", "2018-09-20 22:28:59.619310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.620167"], ["updated_at", "2018-09-20 22:28:59.620167"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.622996"], ["updated_at", "2018-09-20 22:28:59.622996"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.628074"], ["updated_at", "2018-09-20 22:28:59.628074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.628885"], ["updated_at", "2018-09-20 22:28:59.628885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:28:59.637684"], ["updated_at", "2018-09-20 22:28:59.637684"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:28:59.639646"], ["updated_at", "2018-09-20 22:28:59.639646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.647534"], ["updated_at", "2018-09-20 22:28:59.647534"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.652133"], ["updated_at", "2018-09-20 22:28:59.652133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.654094"], ["updated_at", "2018-09-20 22:28:59.654094"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.660356"], ["updated_at", "2018-09-20 22:28:59.660356"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.661281"], ["updated_at", "2018-09-20 22:28:59.661281"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.663219"], ["updated_at", "2018-09-20 22:28:59.663219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.666494"], ["updated_at", "2018-09-20 22:28:59.666494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.667286"], ["updated_at", "2018-09-20 22:28:59.667286"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:28:59.669863"], ["updated_at", "2018-09-20 22:28:59.669863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:29:39.198424"], ["updated_at", "2018-09-20 22:29:39.198424"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.2ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.211312"], ["updated_at", "2018-09-20 22:29:39.211312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.2ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.2ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 7], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.227935"], ["updated_at", "2018-09-20 22:29:39.227935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.233351"], ["updated_at", "2018-09-20 22:29:39.233351"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (11.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.236003"], ["updated_at", "2018-09-20 22:29:39.236003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:29:39.253771"], ["updated_at", "2018-09-20 22:29:39.253771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:29:39.254582"], ["updated_at", "2018-09-20 22:29:39.254582"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:29:39.462704"], ["updated_at", "2018-09-20 22:29:39.462704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:29:39.463721"], ["updated_at", "2018-09-20 22:29:39.463721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.464441"], ["updated_at", "2018-09-20 22:29:39.464441"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.466927"], ["updated_at", "2018-09-20 22:29:39.466927"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.467622"], ["updated_at", "2018-09-20 22:29:39.467622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.469775"], ["updated_at", "2018-09-20 22:29:39.469775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.473016"], ["updated_at", "2018-09-20 22:29:39.473016"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.477499"], ["updated_at", "2018-09-20 22:29:39.477499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.481247"], ["updated_at", "2018-09-20 22:29:39.481247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.482045"], ["updated_at", "2018-09-20 22:29:39.482045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.482722"], ["updated_at", "2018-09-20 22:29:39.482722"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.484873"], ["updated_at", "2018-09-20 22:29:39.484873"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.486653"], ["updated_at", "2018-09-20 22:29:39.486653"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.487568"], ["updated_at", "2018-09-20 22:29:39.487568"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.489470"], ["updated_at", "2018-09-20 22:29:39.489470"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.491336"], ["updated_at", "2018-09-20 22:29:39.491336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.494244"], ["updated_at", "2018-09-20 22:29:39.494244"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.498131"], ["updated_at", "2018-09-20 22:29:39.498131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.499925"], ["updated_at", "2018-09-20 22:29:39.499925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.502735"], ["updated_at", "2018-09-20 22:29:39.502735"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.503501"], ["updated_at", "2018-09-20 22:29:39.503501"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.506295"], ["updated_at", "2018-09-20 22:29:39.506295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.513302"], ["updated_at", "2018-09-20 22:29:39.513302"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:29:39.521414"], ["updated_at", "2018-09-20 22:29:39.521414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:29:39.523277"], ["updated_at", "2018-09-20 22:29:39.523277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.531360"], ["updated_at", "2018-09-20 22:29:39.531360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.532232"], ["updated_at", "2018-09-20 22:29:39.532232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.536697"], ["updated_at", "2018-09-20 22:29:39.536697"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.537494"], ["updated_at", "2018-09-20 22:29:39.537494"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.546954"], ["updated_at", "2018-09-20 22:29:39.546954"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.552310"], ["updated_at", "2018-09-20 22:29:39.552310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.558126"], ["updated_at", "2018-09-20 22:29:39.558126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.559080"], ["updated_at", "2018-09-20 22:29:39.559080"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.561570"], ["updated_at", "2018-09-20 22:29:39.561570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.563440"], ["updated_at", "2018-09-20 22:29:39.563440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.566587"], ["updated_at", "2018-09-20 22:29:39.566587"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.567628"], ["updated_at", "2018-09-20 22:29:39.567628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.574431"], ["updated_at", "2018-09-20 22:29:39.574431"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.575338"], ["updated_at", "2018-09-20 22:29:39.575338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.576210"], ["updated_at", "2018-09-20 22:29:39.576210"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.578939"], ["updated_at", "2018-09-20 22:29:39.578939"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.579690"], ["updated_at", "2018-09-20 22:29:39.579690"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.581959"], ["updated_at", "2018-09-20 22:29:39.581959"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.586593"], ["updated_at", "2018-09-20 22:29:39.586593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.587363"], ["updated_at", "2018-09-20 22:29:39.587363"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.594198"], ["updated_at", "2018-09-20 22:29:39.594198"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.595998"], ["updated_at", "2018-09-20 22:29:39.595998"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.598970"], ["updated_at", "2018-09-20 22:29:39.598970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:29:39.600020"], ["updated_at", "2018-09-20 22:29:39.600020"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.602828"], ["updated_at", "2018-09-20 22:29:39.602828"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.608334"], ["updated_at", "2018-09-20 22:29:39.608334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.609177"], ["updated_at", "2018-09-20 22:29:39.609177"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:29:39.621984"], ["updated_at", "2018-09-20 22:29:39.621984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:29:39.634670"], ["updated_at", "2018-09-20 22:29:39.634670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:29:39.638338"], ["updated_at", "2018-09-20 22:29:39.638338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:29:39.639185"], ["updated_at", "2018-09-20 22:29:39.639185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:29:39.641027"], ["updated_at", "2018-09-20 22:29:39.641027"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:29:39.641941"], ["updated_at", "2018-09-20 22:29:39.641941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.645425"], ["updated_at", "2018-09-20 22:29:39.645425"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.646340"], ["updated_at", "2018-09-20 22:29:39.646340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:29:39.654792"], ["updated_at", "2018-09-20 22:29:39.654792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:29:39.655587"], ["updated_at", "2018-09-20 22:29:39.655587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:29:39.657145"], ["updated_at", "2018-09-20 22:29:39.657145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:29:39.657868"], ["updated_at", "2018-09-20 22:29:39.657868"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.663368"], ["updated_at", "2018-09-20 22:29:39.663368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.664176"], ["updated_at", "2018-09-20 22:29:39.664176"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.665980"], ["updated_at", "2018-09-20 22:29:39.665980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:29:39.679730"], ["updated_at", "2018-09-20 22:29:39.679730"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-20 22:29:39.680742"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:29:39.681602"], ["updated_at", "2018-09-20 22:29:39.681602"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:29:39.682373"], ["updated_at", "2018-09-20 22:29:39.682373"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:29:39.685509"], ["updated_at", "2018-09-20 22:29:39.685509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.687983"], ["updated_at", "2018-09-20 22:29:39.687983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.692091"], ["updated_at", "2018-09-20 22:29:39.692091"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.698570"], ["updated_at", "2018-09-20 22:29:39.698570"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.699454"], ["updated_at", "2018-09-20 22:29:39.699454"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.701340"], ["updated_at", "2018-09-20 22:29:39.701340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.703210"], ["updated_at", "2018-09-20 22:29:39.703210"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:39.705251"], ["updated_at", "2018-09-20 22:29:39.705251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity ---------------------------------------  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 10ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:29:45.192373"], ["updated_at", "2018-09-20 22:29:45.192373"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.220772"], ["updated_at", "2018-09-20 22:29:45.220772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:29:45.235168"], ["updated_at", "2018-09-20 22:29:45.235168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:29:45.236234"], ["updated_at", "2018-09-20 22:29:45.236234"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 6], ["id", 2], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.306669"], ["updated_at", "2018-09-20 22:29:45.306669"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.313045"], ["updated_at", "2018-09-20 22:29:45.313045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.315497"], ["updated_at", "2018-09-20 22:29:45.315497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.503651"], ["updated_at", "2018-09-20 22:29:45.503651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.504643"], ["updated_at", "2018-09-20 22:29:45.504643"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.506699"], ["updated_at", "2018-09-20 22:29:45.506699"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.507443"], ["updated_at", "2018-09-20 22:29:45.507443"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.509936"], ["updated_at", "2018-09-20 22:29:45.509936"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.511746"], ["updated_at", "2018-09-20 22:29:45.511746"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.513756"], ["updated_at", "2018-09-20 22:29:45.513756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.515665"], ["updated_at", "2018-09-20 22:29:45.515665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.519755"], ["updated_at", "2018-09-20 22:29:45.519755"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.526403"], ["updated_at", "2018-09-20 22:29:45.526403"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.531942"], ["updated_at", "2018-09-20 22:29:45.531942"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.532833"], ["updated_at", "2018-09-20 22:29:45.532833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.541134"], ["updated_at", "2018-09-20 22:29:45.541134"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.541897"], ["updated_at", "2018-09-20 22:29:45.541897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.542611"], ["updated_at", "2018-09-20 22:29:45.542611"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.553695"], ["updated_at", "2018-09-20 22:29:45.553695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.554520"], ["updated_at", "2018-09-20 22:29:45.554520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.556271"], ["updated_at", "2018-09-20 22:29:45.556271"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.572527"], ["updated_at", "2018-09-20 22:29:45.572527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.573756"], ["updated_at", "2018-09-20 22:29:45.573756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:29:45.579851"], ["updated_at", "2018-09-20 22:29:45.579851"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:29:45.581099"], ["updated_at", "2018-09-20 22:29:45.581099"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.582471"], ["updated_at", "2018-09-20 22:29:45.582471"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:29:45.584649"], ["updated_at", "2018-09-20 22:29:45.584649"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.586578"], ["updated_at", "2018-09-20 22:29:45.586578"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.590929"], ["updated_at", "2018-09-20 22:29:45.590929"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.595757"], ["updated_at", "2018-09-20 22:29:45.595757"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.597400"], ["updated_at", "2018-09-20 22:29:45.597400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.600772"], ["updated_at", "2018-09-20 22:29:45.600772"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.603122"], ["updated_at", "2018-09-20 22:29:45.603122"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.606349"], ["updated_at", "2018-09-20 22:29:45.606349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.607296"], ["updated_at", "2018-09-20 22:29:45.607296"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.617550"], ["updated_at", "2018-09-20 22:29:45.617550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.619489"], ["updated_at", "2018-09-20 22:29:45.619489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:29:45.628298"], ["updated_at", "2018-09-20 22:29:45.628298"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.642424"], ["updated_at", "2018-09-20 22:29:45.642424"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.649048"], ["updated_at", "2018-09-20 22:29:45.649048"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.649931"], ["updated_at", "2018-09-20 22:29:45.649931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.654863"], ["updated_at", "2018-09-20 22:29:45.654863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.655608"], ["updated_at", "2018-09-20 22:29:45.655608"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.657232"], ["updated_at", "2018-09-20 22:29:45.657232"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:29:45.660438"], ["updated_at", "2018-09-20 22:29:45.660438"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:29:45.661442"], ["updated_at", "2018-09-20 22:29:45.661442"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:29:45.663578"], ["updated_at", "2018-09-20 22:29:45.663578"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:29:45.664461"], ["updated_at", "2018-09-20 22:29:45.664461"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.668024"], ["updated_at", "2018-09-20 22:29:45.668024"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.668976"], ["updated_at", "2018-09-20 22:29:45.668976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.675235"], ["updated_at", "2018-09-20 22:29:45.675235"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:29:45.676006"], ["updated_at", "2018-09-20 22:29:45.676006"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.678654"], ["updated_at", "2018-09-20 22:29:45.678654"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.683226"], ["updated_at", "2018-09-20 22:29:45.683226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.686380"], ["updated_at", "2018-09-20 22:29:45.686380"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.687164"], ["updated_at", "2018-09-20 22:29:45.687164"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.689863"], ["updated_at", "2018-09-20 22:29:45.689863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.690612"], ["updated_at", "2018-09-20 22:29:45.690612"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.692785"], ["updated_at", "2018-09-20 22:29:45.692785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.693548"], ["updated_at", "2018-09-20 22:29:45.693548"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.694254"], ["updated_at", "2018-09-20 22:29:45.694254"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:29:45.697059"], ["updated_at", "2018-09-20 22:29:45.697059"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-20 22:29:45.698049"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:29:45.698895"], ["updated_at", "2018-09-20 22:29:45.698895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:29:45.699727"], ["updated_at", "2018-09-20 22:29:45.699727"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.703255"], ["updated_at", "2018-09-20 22:29:45.703255"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.703945"], ["updated_at", "2018-09-20 22:29:45.703945"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:29:45.708530"], ["updated_at", "2018-09-20 22:29:45.708530"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.712657"], ["updated_at", "2018-09-20 22:29:45.712657"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.719249"], ["updated_at", "2018-09-20 22:29:45.719249"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.725585"], ["updated_at", "2018-09-20 22:29:45.725585"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:29:45.734247"], ["updated_at", "2018-09-20 22:29:45.734247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:29:45.735116"], ["updated_at", "2018-09-20 22:29:45.735116"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:29:45.736709"], ["updated_at", "2018-09-20 22:29:45.736709"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:29:45.737495"], ["updated_at", "2018-09-20 22:29:45.737495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:29:45.743567"], ["updated_at", "2018-09-20 22:29:45.743567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:29:45.745430"], ["updated_at", "2018-09-20 22:29:45.745430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.754694"], ["updated_at", "2018-09-20 22:29:45.754694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.761385"], ["updated_at", "2018-09-20 22:29:45.761385"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.762213"], ["updated_at", "2018-09-20 22:29:45.762213"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.763948"], ["updated_at", "2018-09-20 22:29:45.763948"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:29:45.765726"], ["updated_at", "2018-09-20 22:29:45.765726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.3ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.480991"], ["updated_at", "2018-09-20 22:31:29.480991"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.485944"], ["updated_at", "2018-09-20 22:31:29.485944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.486709"], ["updated_at", "2018-09-20 22:31:29.486709"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.490329"], ["updated_at", "2018-09-20 22:31:29.490329"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.491086"], ["updated_at", "2018-09-20 22:31:29.491086"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.492990"], ["updated_at", "2018-09-20 22:31:29.492990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.493637"], ["updated_at", "2018-09-20 22:31:29.493637"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:31:29.495626"], ["updated_at", "2018-09-20 22:31:29.495626"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.511824"], ["updated_at", "2018-09-20 22:31:29.511824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:31:29.527246"], ["updated_at", "2018-09-20 22:31:29.527246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:31:29.529121"], ["updated_at", "2018-09-20 22:31:29.529121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.542813"], ["updated_at", "2018-09-20 22:31:29.542813"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.543640"], ["updated_at", "2018-09-20 22:31:29.543640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.561754"], ["updated_at", "2018-09-20 22:31:29.561754"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.562518"], ["updated_at", "2018-09-20 22:31:29.562518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.566467"], ["updated_at", "2018-09-20 22:31:29.566467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.569277"], ["updated_at", "2018-09-20 22:31:29.569277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.569943"], ["updated_at", "2018-09-20 22:31:29.569943"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.571459"], ["updated_at", "2018-09-20 22:31:29.571459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.572100"], ["updated_at", "2018-09-20 22:31:29.572100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.579037"], ["updated_at", "2018-09-20 22:31:29.579037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.579750"], ["updated_at", "2018-09-20 22:31:29.579750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.583346"], ["updated_at", "2018-09-20 22:31:29.583346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.584853"], ["updated_at", "2018-09-20 22:31:29.584853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.587359"], ["updated_at", "2018-09-20 22:31:29.587359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.588840"], ["updated_at", "2018-09-20 22:31:29.588840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:31:29.591301"], ["updated_at", "2018-09-20 22:31:29.591301"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:31:29.592020"], ["updated_at", "2018-09-20 22:31:29.592020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:31:29.593519"], ["updated_at", "2018-09-20 22:31:29.593519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:31:29.594225"], ["updated_at", "2018-09-20 22:31:29.594225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.598005"], ["updated_at", "2018-09-20 22:31:29.598005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.598994"], ["updated_at", "2018-09-20 22:31:29.598994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.604049"], ["updated_at", "2018-09-20 22:31:29.604049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.605922"], ["updated_at", "2018-09-20 22:31:29.605922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.607565"], ["updated_at", "2018-09-20 22:31:29.607565"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:31:29.613364"], ["updated_at", "2018-09-20 22:31:29.613364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.626832"], ["updated_at", "2018-09-20 22:31:29.626832"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.627628"], ["updated_at", "2018-09-20 22:31:29.627628"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.632370"], ["updated_at", "2018-09-20 22:31:29.632370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.636744"], ["updated_at", "2018-09-20 22:31:29.636744"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.640128"], ["updated_at", "2018-09-20 22:31:29.640128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.640857"], ["updated_at", "2018-09-20 22:31:29.640857"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.642486"], ["updated_at", "2018-09-20 22:31:29.642486"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:31:29.649545"], ["updated_at", "2018-09-20 22:31:29.649545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:31:29.653336"], ["updated_at", "2018-09-20 22:31:29.653336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:31:29.654087"], ["updated_at", "2018-09-20 22:31:29.654087"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.654785"], ["updated_at", "2018-09-20 22:31:29.654785"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.656442"], ["updated_at", "2018-09-20 22:31:29.656442"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.665107"], ["updated_at", "2018-09-20 22:31:29.665107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.669467"], ["updated_at", "2018-09-20 22:31:29.669467"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.671218"], ["updated_at", "2018-09-20 22:31:29.671218"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.674858"], ["updated_at", "2018-09-20 22:31:29.674858"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.675711"], ["updated_at", "2018-09-20 22:31:29.675711"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.677731"], ["updated_at", "2018-09-20 22:31:29.677731"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.681606"], ["updated_at", "2018-09-20 22:31:29.681606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:31:29.686839"], ["updated_at", "2018-09-20 22:31:29.686839"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-20 22:31:29.687810"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:31:29.689093"], ["updated_at", "2018-09-20 22:31:29.689093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:31:29.689859"], ["updated_at", "2018-09-20 22:31:29.689859"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.693031"], ["updated_at", "2018-09-20 22:31:29.693031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.693740"], ["updated_at", "2018-09-20 22:31:29.693740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.701609"], ["updated_at", "2018-09-20 22:31:29.701609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.705423"], ["updated_at", "2018-09-20 22:31:29.705423"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.710508"], ["updated_at", "2018-09-20 22:31:29.710508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.716273"], ["updated_at", "2018-09-20 22:31:29.716273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.721307"], ["updated_at", "2018-09-20 22:31:29.721307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.725634"], ["updated_at", "2018-09-20 22:31:29.725634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.726374"], ["updated_at", "2018-09-20 22:31:29.726374"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:31:29.728251"], ["updated_at", "2018-09-20 22:31:29.728251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:31:29.729057"], ["updated_at", "2018-09-20 22:31:29.729057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:31:29.730716"], ["updated_at", "2018-09-20 22:31:29.730716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:31:29.731476"], ["updated_at", "2018-09-20 22:31:29.731476"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.737344"], ["updated_at", "2018-09-20 22:31:29.737344"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:31:29.738143"], ["updated_at", "2018-09-20 22:31:29.738143"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.740562"], ["updated_at", "2018-09-20 22:31:29.740562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.741278"], ["updated_at", "2018-09-20 22:31:29.741278"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.743340"], ["updated_at", "2018-09-20 22:31:29.743340"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.744051"], ["updated_at", "2018-09-20 22:31:29.744051"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.744759"], ["updated_at", "2018-09-20 22:31:29.744759"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models" ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.774093"], ["updated_at", "2018-09-20 22:31:29.774093"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.778927"], ["updated_at", "2018-09-20 22:31:29.778927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.781437"], ["updated_at", "2018-09-20 22:31:29.781437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:31:29.788347"], ["updated_at", "2018-09-20 22:31:29.788347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:31:29.789246"], ["updated_at", "2018-09-20 22:31:29.789246"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:31:29.820010"], ["updated_at", "2018-09-20 22:31:29.820010"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:31:29.822071"], ["updated_at", "2018-09-20 22:31:29.822071"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.2ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-20 22:36:35.256832"], ["updated_at", "2018-09-20 22:36:35.256832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-20 22:36:35.258040"], ["updated_at", "2018-09-20 22:36:35.258040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.284336"], ["updated_at", "2018-09-20 22:36:35.284336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-20 22:36:35.289819"], ["updated_at", "2018-09-20 22:36:35.289819"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.296195"], ["updated_at", "2018-09-20 22:36:35.296195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.300549"], ["updated_at", "2018-09-20 22:36:35.300549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.302914"], ["updated_at", "2018-09-20 22:36:35.302914"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.423410"], ["updated_at", "2018-09-20 22:36:35.423410"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.425436"], ["updated_at", "2018-09-20 22:36:35.425436"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.426154"], ["updated_at", "2018-09-20 22:36:35.426154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.426879"], ["updated_at", "2018-09-20 22:36:35.426879"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.429300"], ["updated_at", "2018-09-20 22:36:35.429300"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.430013"], ["updated_at", "2018-09-20 22:36:35.430013"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.430716"], ["updated_at", "2018-09-20 22:36:35.430716"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.433008"], ["updated_at", "2018-09-20 22:36:35.433008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-20 22:36:35.438074"], ["updated_at", "2018-09-20 22:36:35.438074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.440124"], ["updated_at", "2018-09-20 22:36:35.440124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.444239"], ["updated_at", "2018-09-20 22:36:35.444239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.445005"], ["updated_at", "2018-09-20 22:36:35.445005"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.446667"], ["updated_at", "2018-09-20 22:36:35.446667"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.449463"], ["updated_at", "2018-09-20 22:36:35.449463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.451041"], ["updated_at", "2018-09-20 22:36:35.451041"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.455976"], ["updated_at", "2018-09-20 22:36:35.455976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.456750"], ["updated_at", "2018-09-20 22:36:35.456750"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.459192"], ["updated_at", "2018-09-20 22:36:35.459192"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.461386"], ["updated_at", "2018-09-20 22:36:35.461386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.465156"], ["updated_at", "2018-09-20 22:36:35.465156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.469624"], ["updated_at", "2018-09-20 22:36:35.469624"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.470456"], ["updated_at", "2018-09-20 22:36:35.470456"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:36:35.472244"], ["updated_at", "2018-09-20 22:36:35.472244"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-20 22:36:35.472982"], ["updated_at", "2018-09-20 22:36:35.472982"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.473641"], ["updated_at", "2018-09-20 22:36:35.473641"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.475220"], ["updated_at", "2018-09-20 22:36:35.475220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.475876"], ["updated_at", "2018-09-20 22:36:35.475876"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-20 22:36:35.478032"], ["updated_at", "2018-09-20 22:36:35.478032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-20 22:36:35.479870"], ["updated_at", "2018-09-20 22:36:35.479870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.486788"], ["updated_at", "2018-09-20 22:36:35.486788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.487614"], ["updated_at", "2018-09-20 22:36:35.487614"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.491817"], ["updated_at", "2018-09-20 22:36:35.491817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.492791"], ["updated_at", "2018-09-20 22:36:35.492791"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:36:35.501240"], ["updated_at", "2018-09-20 22:36:35.501240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.509770"], ["updated_at", "2018-09-20 22:36:35.509770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.510622"], ["updated_at", "2018-09-20 22:36:35.510622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.517436"], ["updated_at", "2018-09-20 22:36:35.517436"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.518357"], ["updated_at", "2018-09-20 22:36:35.518357"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-20 22:36:35.523818"], ["updated_at", "2018-09-20 22:36:35.523818"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.536083"], ["updated_at", "2018-09-20 22:36:35.536083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.540550"], ["updated_at", "2018-09-20 22:36:35.540550"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.546281"], ["updated_at", "2018-09-20 22:36:35.546281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.560730"], ["updated_at", "2018-09-20 22:36:35.560730"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.561544"], ["updated_at", "2018-09-20 22:36:35.561544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.569601"], ["updated_at", "2018-09-20 22:36:35.569601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.570465"], ["updated_at", "2018-09-20 22:36:35.570465"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.583323"], ["updated_at", "2018-09-20 22:36:35.583323"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.587900"], ["updated_at", "2018-09-20 22:36:35.587900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.593293"], ["updated_at", "2018-09-20 22:36:35.593293"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-20 22:36:35.597834"], ["updated_at", "2018-09-20 22:36:35.597834"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.600315"], ["updated_at", "2018-09-20 22:36:35.600315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.602201"], ["updated_at", "2018-09-20 22:36:35.602201"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:36:35.605489"], ["updated_at", "2018-09-20 22:36:35.605489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:36:35.606274"], ["updated_at", "2018-09-20 22:36:35.606274"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:36:35.607852"], ["updated_at", "2018-09-20 22:36:35.607852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:36:35.608568"], ["updated_at", "2018-09-20 22:36:35.608568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.614186"], ["updated_at", "2018-09-20 22:36:35.614186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.615844"], ["updated_at", "2018-09-20 22:36:35.615844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.617406"], ["updated_at", "2018-09-20 22:36:35.617406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.620611"], ["updated_at", "2018-09-20 22:36:35.620611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.621666"], ["updated_at", "2018-09-20 22:36:35.621666"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.629457"], ["updated_at", "2018-09-20 22:36:35.629457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.633439"], ["updated_at", "2018-09-20 22:36:35.633439"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.634201"], ["updated_at", "2018-09-20 22:36:35.634201"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.635891"], ["updated_at", "2018-09-20 22:36:35.635891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.636622"], ["updated_at", "2018-09-20 22:36:35.636622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.641857"], ["updated_at", "2018-09-20 22:36:35.641857"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.647225"], ["updated_at", "2018-09-20 22:36:35.647225"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.648221"], ["updated_at", "2018-09-20 22:36:35.648221"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.650358"], ["updated_at", "2018-09-20 22:36:35.650358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-20 22:36:35.654545"], ["updated_at", "2018-09-20 22:36:35.654545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-20 22:36:35.655552"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-20 22:36:35.656397"], ["updated_at", "2018-09-20 22:36:35.656397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-20 22:36:35.657158"], ["updated_at", "2018-09-20 22:36:35.657158"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-20 22:36:35.660708"], ["updated_at", "2018-09-20 22:36:35.660708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-20 22:36:35.661670"], ["updated_at", "2018-09-20 22:36:35.661670"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-20 22:36:35.663531"], ["updated_at", "2018-09-20 22:36:35.663531"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-20 22:36:35.664404"], ["updated_at", "2018-09-20 22:36:35.664404"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-20 22:36:35.667976"], ["updated_at", "2018-09-20 22:36:35.667976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.054538"], ["updated_at", "2018-09-21 02:30:18.054538"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.107109"], ["updated_at", "2018-09-21 02:30:18.107109"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.109600"], ["updated_at", "2018-09-21 02:30:18.109600"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-21 02:30:18.147020"], ["updated_at", "2018-09-21 02:30:18.147020"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 8], ["id", 2], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.1ms) DELETE FROM "branches" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-21 02:30:18.169346"], ["updated_at", "2018-09-21 02:30:18.169346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-21 02:30:18.170313"], ["updated_at", "2018-09-21 02:30:18.170313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.198807"], ["updated_at", "2018-09-21 02:30:18.198807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 7ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.382898"], ["updated_at", "2018-09-21 02:30:18.382898"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-21 02:30:18.383888"], ["updated_at", "2018-09-21 02:30:18.383888"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.386737"], ["updated_at", "2018-09-21 02:30:18.386737"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.388885"], ["updated_at", "2018-09-21 02:30:18.388885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.391945"], ["updated_at", "2018-09-21 02:30:18.391945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.396713"], ["updated_at", "2018-09-21 02:30:18.396713"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.397732"], ["updated_at", "2018-09-21 02:30:18.397732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.398861"], ["updated_at", "2018-09-21 02:30:18.398861"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-21 02:30:18.404700"], ["updated_at", "2018-09-21 02:30:18.404700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.419480"], ["updated_at", "2018-09-21 02:30:18.419480"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.420424"], ["updated_at", "2018-09-21 02:30:18.420424"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.422675"], ["updated_at", "2018-09-21 02:30:18.422675"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.429420"], ["updated_at", "2018-09-21 02:30:18.429420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.430336"], ["updated_at", "2018-09-21 02:30:18.430336"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:30:18.435339"], ["updated_at", "2018-09-21 02:30:18.435339"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.439773"], ["updated_at", "2018-09-21 02:30:18.439773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.445619"], ["updated_at", "2018-09-21 02:30:18.445619"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.446757"], ["updated_at", "2018-09-21 02:30:18.446757"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.450249"], ["updated_at", "2018-09-21 02:30:18.450249"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:30:18.453009"], ["updated_at", "2018-09-21 02:30:18.453009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:30:18.454021"], ["updated_at", "2018-09-21 02:30:18.454021"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:30:18.455736"], ["updated_at", "2018-09-21 02:30:18.455736"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:30:18.456513"], ["updated_at", "2018-09-21 02:30:18.456513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.462885"], ["updated_at", "2018-09-21 02:30:18.462885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.467661"], ["updated_at", "2018-09-21 02:30:18.467661"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.468623"], ["updated_at", "2018-09-21 02:30:18.468623"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-21 02:30:18.471315"], ["updated_at", "2018-09-21 02:30:18.471315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.473368"], ["updated_at", "2018-09-21 02:30:18.473368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.476984"], ["updated_at", "2018-09-21 02:30:18.476984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.477763"], ["updated_at", "2018-09-21 02:30:18.477763"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.487142"], ["updated_at", "2018-09-21 02:30:18.487142"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.488449"], ["updated_at", "2018-09-21 02:30:18.488449"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:30:18.491194"], ["updated_at", "2018-09-21 02:30:18.491194"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:30:18.492078"], ["updated_at", "2018-09-21 02:30:18.492078"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.492835"], ["updated_at", "2018-09-21 02:30:18.492835"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.494874"], ["updated_at", "2018-09-21 02:30:18.494874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.495669"], ["updated_at", "2018-09-21 02:30:18.495669"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.500876"], ["updated_at", "2018-09-21 02:30:18.500876"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.502764"], ["updated_at", "2018-09-21 02:30:18.502764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:30:18.506785"], ["updated_at", "2018-09-21 02:30:18.506785"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:30:18.508308"], ["updated_at", "2018-09-21 02:30:18.508308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:30:18.510380"], ["updated_at", "2018-09-21 02:30:18.510380"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:30:18.511299"], ["updated_at", "2018-09-21 02:30:18.511299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.515069"], ["updated_at", "2018-09-21 02:30:18.515069"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.515859"], ["updated_at", "2018-09-21 02:30:18.515859"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.519854"], ["updated_at", "2018-09-21 02:30:18.519854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.520665"], ["updated_at", "2018-09-21 02:30:18.520665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.525480"], ["updated_at", "2018-09-21 02:30:18.525480"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.527819"], ["updated_at", "2018-09-21 02:30:18.527819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.529836"], ["updated_at", "2018-09-21 02:30:18.529836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.532941"], ["updated_at", "2018-09-21 02:30:18.532941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.548509"], ["updated_at", "2018-09-21 02:30:18.548509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.549532"], ["updated_at", "2018-09-21 02:30:18.549532"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.550636"], ["updated_at", "2018-09-21 02:30:18.550636"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.553314"], ["updated_at", "2018-09-21 02:30:18.553314"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.554345"], ["updated_at", "2018-09-21 02:30:18.554345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.561453"], ["updated_at", "2018-09-21 02:30:18.561453"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-21 02:30:18.564944"], ["updated_at", "2018-09-21 02:30:18.564944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-21 02:30:18.566882"], ["updated_at", "2018-09-21 02:30:18.566882"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.584032"], ["updated_at", "2018-09-21 02:30:18.584032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.590258"], ["updated_at", "2018-09-21 02:30:18.590258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.594746"], ["updated_at", "2018-09-21 02:30:18.594746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.600084"], ["updated_at", "2018-09-21 02:30:18.600084"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.603360"], ["updated_at", "2018-09-21 02:30:18.603360"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.604151"], ["updated_at", "2018-09-21 02:30:18.604151"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.605848"], ["updated_at", "2018-09-21 02:30:18.605848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.609516"], ["updated_at", "2018-09-21 02:30:18.609516"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.611546"], ["updated_at", "2018-09-21 02:30:18.611546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.614736"], ["updated_at", "2018-09-21 02:30:18.614736"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.615487"], ["updated_at", "2018-09-21 02:30:18.615487"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.617121"], ["updated_at", "2018-09-21 02:30:18.617121"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.620034"], ["updated_at", "2018-09-21 02:30:18.620034"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.620755"], ["updated_at", "2018-09-21 02:30:18.620755"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-21 02:30:18.626567"], ["updated_at", "2018-09-21 02:30:18.626567"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-21 02:30:18.628006"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:30:18.629265"], ["updated_at", "2018-09-21 02:30:18.629265"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-21 02:30:18.630017"], ["updated_at", "2018-09-21 02:30:18.630017"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.633337"], ["updated_at", "2018-09-21 02:30:18.633337"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:18.634092"], ["updated_at", "2018-09-21 02:30:18.634092"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) TestModel Destroy (0.7ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.692928"], ["updated_at", "2018-09-21 02:30:52.692928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.693974"], ["updated_at", "2018-09-21 02:30:52.693974"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.711537"], ["updated_at", "2018-09-21 02:30:52.711537"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.738859"], ["updated_at", "2018-09-21 02:30:52.738859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.739804"], ["updated_at", "2018-09-21 02:30:52.739804"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.740566"], ["updated_at", "2018-09-21 02:30:52.740566"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.743067"], ["updated_at", "2018-09-21 02:30:52.743067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.749034"], ["updated_at", "2018-09-21 02:30:52.749034"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.749896"], ["updated_at", "2018-09-21 02:30:52.749896"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-21 02:30:52.751743"], ["updated_at", "2018-09-21 02:30:52.751743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.753559"], ["updated_at", "2018-09-21 02:30:52.753559"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.759251"], ["updated_at", "2018-09-21 02:30:52.759251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.760138"], ["updated_at", "2018-09-21 02:30:52.760138"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.769660"], ["updated_at", "2018-09-21 02:30:52.769660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.770420"], ["updated_at", "2018-09-21 02:30:52.770420"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.772584"], ["updated_at", "2018-09-21 02:30:52.772584"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.773333"], ["updated_at", "2018-09-21 02:30:52.773333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.774112"], ["updated_at", "2018-09-21 02:30:52.774112"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.776553"], ["updated_at", "2018-09-21 02:30:52.776553"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.781327"], ["updated_at", "2018-09-21 02:30:52.781327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.785333"], ["updated_at", "2018-09-21 02:30:52.785333"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.787377"], ["updated_at", "2018-09-21 02:30:52.787377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:30:52.795700"], ["updated_at", "2018-09-21 02:30:52.795700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.800620"], ["updated_at", "2018-09-21 02:30:52.800620"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-21 02:30:52.807235"], ["updated_at", "2018-09-21 02:30:52.807235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-21 02:30:52.808742"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:30:52.810253"], ["updated_at", "2018-09-21 02:30:52.810253"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-21 02:30:52.811101"], ["updated_at", "2018-09-21 02:30:52.811101"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.815237"], ["updated_at", "2018-09-21 02:30:52.815237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.816115"], ["updated_at", "2018-09-21 02:30:52.816115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:30:52.827530"], ["updated_at", "2018-09-21 02:30:52.827530"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:30:52.828428"], ["updated_at", "2018-09-21 02:30:52.828428"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:30:52.829980"], ["updated_at", "2018-09-21 02:30:52.829980"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:30:52.830761"], ["updated_at", "2018-09-21 02:30:52.830761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.839986"], ["updated_at", "2018-09-21 02:30:52.839986"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.844028"], ["updated_at", "2018-09-21 02:30:52.844028"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.844844"], ["updated_at", "2018-09-21 02:30:52.844844"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.846453"], ["updated_at", "2018-09-21 02:30:52.846453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.849237"], ["updated_at", "2018-09-21 02:30:52.849237"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.850966"], ["updated_at", "2018-09-21 02:30:52.850966"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.851760"], ["updated_at", "2018-09-21 02:30:52.851760"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.854631"], ["updated_at", "2018-09-21 02:30:52.854631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.856672"], ["updated_at", "2018-09-21 02:30:52.856672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:30:52.860517"], ["updated_at", "2018-09-21 02:30:52.860517"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:30:52.861375"], ["updated_at", "2018-09-21 02:30:52.861375"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:30:52.862935"], ["updated_at", "2018-09-21 02:30:52.862935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:30:52.863677"], ["updated_at", "2018-09-21 02:30:52.863677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-21 02:30:52.869484"], ["updated_at", "2018-09-21 02:30:52.869484"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-21 02:30:52.871201"], ["updated_at", "2018-09-21 02:30:52.871201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.879905"], ["updated_at", "2018-09-21 02:30:52.879905"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.884239"], ["updated_at", "2018-09-21 02:30:52.884239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.884968"], ["updated_at", "2018-09-21 02:30:52.884968"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.888938"], ["updated_at", "2018-09-21 02:30:52.888938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.889691"], ["updated_at", "2018-09-21 02:30:52.889691"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-21 02:30:52.892847"], ["updated_at", "2018-09-21 02:30:52.892847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.901989"], ["updated_at", "2018-09-21 02:30:52.901989"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.903721"], ["updated_at", "2018-09-21 02:30:52.903721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.906454"], ["updated_at", "2018-09-21 02:30:52.906454"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-21 02:30:52.907205"], ["updated_at", "2018-09-21 02:30:52.907205"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.909338"], ["updated_at", "2018-09-21 02:30:52.909338"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.910000"], ["updated_at", "2018-09-21 02:30:52.910000"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.918195"], ["updated_at", "2018-09-21 02:30:52.918195"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.920028"], ["updated_at", "2018-09-21 02:30:52.920028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.921634"], ["updated_at", "2018-09-21 02:30:52.921634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.924774"], ["updated_at", "2018-09-21 02:30:52.924774"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:30:52.928853"], ["updated_at", "2018-09-21 02:30:52.928853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:30:52.929650"], ["updated_at", "2018-09-21 02:30:52.929650"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.930328"], ["updated_at", "2018-09-21 02:30:52.930328"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.932419"], ["updated_at", "2018-09-21 02:30:52.932419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.937506"], ["updated_at", "2018-09-21 02:30:52.937506"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.943098"], ["updated_at", "2018-09-21 02:30:52.943098"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.943949"], ["updated_at", "2018-09-21 02:30:52.943949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.948498"], ["updated_at", "2018-09-21 02:30:52.948498"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.949239"], ["updated_at", "2018-09-21 02:30:52.949239"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.966394"], ["updated_at", "2018-09-21 02:30:52.966394"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.967249"], ["updated_at", "2018-09-21 02:30:52.967249"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.969565"], ["updated_at", "2018-09-21 02:30:52.969565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.973836"], ["updated_at", "2018-09-21 02:30:52.973836"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:52.974577"], ["updated_at", "2018-09-21 02:30:52.974577"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-21 02:30:53.077436"], ["updated_at", "2018-09-21 02:30:53.077436"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 2], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:53.091665"], ["updated_at", "2018-09-21 02:30:53.091665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:53.096847"], ["updated_at", "2018-09-21 02:30:53.096847"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:53.099156"], ["updated_at", "2018-09-21 02:30:53.099156"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-21 02:30:53.103707"], ["updated_at", "2018-09-21 02:30:53.103707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-21 02:30:53.104443"], ["updated_at", "2018-09-21 02:30:53.104443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:30:53.130705"], ["updated_at", "2018-09-21 02:30:53.130705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches" ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-21 02:31:10.668073"], ["updated_at", "2018-09-21 02:31:10.668073"]]  (0.1ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.724824"], ["updated_at", "2018-09-21 02:31:10.724824"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.740133"], ["updated_at", "2018-09-21 02:31:10.740133"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.743376"], ["updated_at", "2018-09-21 02:31:10.743376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.763972"], ["updated_at", "2018-09-21 02:31:10.763972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-21 02:31:10.776489"], ["updated_at", "2018-09-21 02:31:10.776489"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-21 02:31:10.777397"], ["updated_at", "2018-09-21 02:31:10.777397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.866103"], ["updated_at", "2018-09-21 02:31:10.866103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-21 02:31:10.871010"], ["updated_at", "2018-09-21 02:31:10.871010"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.872770"], ["updated_at", "2018-09-21 02:31:10.872770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-21 02:31:10.886145"], ["updated_at", "2018-09-21 02:31:10.886145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-21 02:31:10.887941"], ["updated_at", "2018-09-21 02:31:10.887941"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.894820"], ["updated_at", "2018-09-21 02:31:10.894820"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.895543"], ["updated_at", "2018-09-21 02:31:10.895543"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.897165"], ["updated_at", "2018-09-21 02:31:10.897165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.898825"], ["updated_at", "2018-09-21 02:31:10.898825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.909397"], ["updated_at", "2018-09-21 02:31:10.909397"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:31:10.914251"], ["updated_at", "2018-09-21 02:31:10.914251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:31:10.915165"], ["updated_at", "2018-09-21 02:31:10.915165"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.916060"], ["updated_at", "2018-09-21 02:31:10.916060"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.921329"], ["updated_at", "2018-09-21 02:31:10.921329"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.922341"], ["updated_at", "2018-09-21 02:31:10.922341"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.927475"], ["updated_at", "2018-09-21 02:31:10.927475"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-21 02:31:10.940262"], ["updated_at", "2018-09-21 02:31:10.940262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.949882"], ["updated_at", "2018-09-21 02:31:10.949882"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.954029"], ["updated_at", "2018-09-21 02:31:10.954029"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.954926"], ["updated_at", "2018-09-21 02:31:10.954926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.959390"], ["updated_at", "2018-09-21 02:31:10.959390"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.960209"], ["updated_at", "2018-09-21 02:31:10.960209"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.963102"], ["updated_at", "2018-09-21 02:31:10.963102"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.965057"], ["updated_at", "2018-09-21 02:31:10.965057"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.967920"], ["updated_at", "2018-09-21 02:31:10.967920"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-21 02:31:10.972903"], ["updated_at", "2018-09-21 02:31:10.972903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-21 02:31:10.973852"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:31:10.974695"], ["updated_at", "2018-09-21 02:31:10.974695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-21 02:31:10.975484"], ["updated_at", "2018-09-21 02:31:10.975484"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.978775"], ["updated_at", "2018-09-21 02:31:10.978775"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.979477"], ["updated_at", "2018-09-21 02:31:10.979477"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.981416"], ["updated_at", "2018-09-21 02:31:10.981416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.985348"], ["updated_at", "2018-09-21 02:31:10.985348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.986456"], ["updated_at", "2018-09-21 02:31:10.986456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.992830"], ["updated_at", "2018-09-21 02:31:10.992830"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:10.997180"], ["updated_at", "2018-09-21 02:31:10.997180"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.002891"], ["updated_at", "2018-09-21 02:31:11.002891"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.007114"], ["updated_at", "2018-09-21 02:31:11.007114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.007912"], ["updated_at", "2018-09-21 02:31:11.007912"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.010219"], ["updated_at", "2018-09-21 02:31:11.010219"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.011969"], ["updated_at", "2018-09-21 02:31:11.011969"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.014884"], ["updated_at", "2018-09-21 02:31:11.014884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.015621"], ["updated_at", "2018-09-21 02:31:11.015621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.027020"], ["updated_at", "2018-09-21 02:31:11.027020"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.027815"], ["updated_at", "2018-09-21 02:31:11.027815"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.029595"], ["updated_at", "2018-09-21 02:31:11.029595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.030316"], ["updated_at", "2018-09-21 02:31:11.030316"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.032508"], ["updated_at", "2018-09-21 02:31:11.032508"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.033204"], ["updated_at", "2018-09-21 02:31:11.033204"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.035712"], ["updated_at", "2018-09-21 02:31:11.035712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-21 02:31:11.036629"], ["updated_at", "2018-09-21 02:31:11.036629"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.039158"], ["updated_at", "2018-09-21 02:31:11.039158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.043267"], ["updated_at", "2018-09-21 02:31:11.043267"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.044040"], ["updated_at", "2018-09-21 02:31:11.044040"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.051765"], ["updated_at", "2018-09-21 02:31:11.051765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.053482"], ["updated_at", "2018-09-21 02:31:11.053482"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.055300"], ["updated_at", "2018-09-21 02:31:11.055300"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:31:11.059130"], ["updated_at", "2018-09-21 02:31:11.059130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:31:11.060149"], ["updated_at", "2018-09-21 02:31:11.060149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:31:11.061807"], ["updated_at", "2018-09-21 02:31:11.061807"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:31:11.062618"], ["updated_at", "2018-09-21 02:31:11.062618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.068546"], ["updated_at", "2018-09-21 02:31:11.068546"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.069309"], ["updated_at", "2018-09-21 02:31:11.069309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.069978"], ["updated_at", "2018-09-21 02:31:11.069978"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:31:11.072158"], ["updated_at", "2018-09-21 02:31:11.072158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:31:11.072913"], ["updated_at", "2018-09-21 02:31:11.072913"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:31:11.074509"], ["updated_at", "2018-09-21 02:31:11.074509"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:31:11.075251"], ["updated_at", "2018-09-21 02:31:11.075251"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:31:11.080955"], ["updated_at", "2018-09-21 02:31:11.080955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.084674"], ["updated_at", "2018-09-21 02:31:11.084674"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.085435"], ["updated_at", "2018-09-21 02:31:11.085435"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.086180"], ["updated_at", "2018-09-21 02:31:11.086180"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.088773"], ["updated_at", "2018-09-21 02:31:11.088773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.089525"], ["updated_at", "2018-09-21 02:31:11.089525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.091353"], ["updated_at", "2018-09-21 02:31:11.091353"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.095097"], ["updated_at", "2018-09-21 02:31:11.095097"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.098416"], ["updated_at", "2018-09-21 02:31:11.098416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.099422"], ["updated_at", "2018-09-21 02:31:11.099422"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:31:11.101660"], ["updated_at", "2018-09-21 02:31:11.101660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.3ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 11ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:35:15.609983"], ["updated_at", "2018-09-21 02:35:15.609983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:35:15.611328"], ["updated_at", "2018-09-21 02:35:15.611328"]]  (0.0ms) commit transaction  (0.2ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:35:15.626083"], ["updated_at", "2018-09-21 02:35:15.626083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:35:15.627226"], ["updated_at", "2018-09-21 02:35:15.627226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.637769"], ["updated_at", "2018-09-21 02:35:15.637769"]]  (9.2ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.648307"], ["updated_at", "2018-09-21 02:35:15.648307"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.661915"], ["updated_at", "2018-09-21 02:35:15.661915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.662675"], ["updated_at", "2018-09-21 02:35:15.662675"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.665146"], ["updated_at", "2018-09-21 02:35:15.665146"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.665931"], ["updated_at", "2018-09-21 02:35:15.665931"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.667651"], ["updated_at", "2018-09-21 02:35:15.667651"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.670567"], ["updated_at", "2018-09-21 02:35:15.670567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.672361"], ["updated_at", "2018-09-21 02:35:15.672361"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.675613"], ["updated_at", "2018-09-21 02:35:15.675613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.677296"], ["updated_at", "2018-09-21 02:35:15.677296"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.680348"], ["updated_at", "2018-09-21 02:35:15.680348"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.681050"], ["updated_at", "2018-09-21 02:35:15.681050"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.683072"], ["updated_at", "2018-09-21 02:35:15.683072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.683758"], ["updated_at", "2018-09-21 02:35:15.683758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.689792"], ["updated_at", "2018-09-21 02:35:15.689792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.690606"], ["updated_at", "2018-09-21 02:35:15.690606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.694778"], ["updated_at", "2018-09-21 02:35:15.694778"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.695665"], ["updated_at", "2018-09-21 02:35:15.695665"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.701986"], ["updated_at", "2018-09-21 02:35:15.701986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.702831"], ["updated_at", "2018-09-21 02:35:15.702831"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.705186"], ["updated_at", "2018-09-21 02:35:15.705186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-21 02:35:15.730103"], ["updated_at", "2018-09-21 02:35:15.730103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.738944"], ["updated_at", "2018-09-21 02:35:15.738944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.739721"], ["updated_at", "2018-09-21 02:35:15.739721"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.747984"], ["updated_at", "2018-09-21 02:35:15.747984"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.748752"], ["updated_at", "2018-09-21 02:35:15.748752"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.750420"], ["updated_at", "2018-09-21 02:35:15.750420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.753946"], ["updated_at", "2018-09-21 02:35:15.753946"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.760884"], ["updated_at", "2018-09-21 02:35:15.760884"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-21 02:35:15.768248"], ["updated_at", "2018-09-21 02:35:15.768248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-21 02:35:15.770976"], ["updated_at", "2018-09-21 02:35:15.770976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.778569"], ["updated_at", "2018-09-21 02:35:15.778569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.783712"], ["updated_at", "2018-09-21 02:35:15.783712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.784618"], ["updated_at", "2018-09-21 02:35:15.784618"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.785321"], ["updated_at", "2018-09-21 02:35:15.785321"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.788331"], ["updated_at", "2018-09-21 02:35:15.788331"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-21 02:35:15.789351"], ["updated_at", "2018-09-21 02:35:15.789351"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.796672"], ["updated_at", "2018-09-21 02:35:15.796672"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.800313"], ["updated_at", "2018-09-21 02:35:15.800313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 3], ["company_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.813107"], ["updated_at", "2018-09-21 02:35:15.813107"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.816298"], ["updated_at", "2018-09-21 02:35:15.816298"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:35:15.820926"], ["updated_at", "2018-09-21 02:35:15.820926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.834067"], ["updated_at", "2018-09-21 02:35:15.834067"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.839598"], ["updated_at", "2018-09-21 02:35:15.839598"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.841083"], ["updated_at", "2018-09-21 02:35:15.841083"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.842030"], ["updated_at", "2018-09-21 02:35:15.842030"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.845009"], ["updated_at", "2018-09-21 02:35:15.845009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.847241"], ["updated_at", "2018-09-21 02:35:15.847241"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.853358"], ["updated_at", "2018-09-21 02:35:15.853358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.857347"], ["updated_at", "2018-09-21 02:35:15.857347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.858134"], ["updated_at", "2018-09-21 02:35:15.858134"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-21 02:35:15.859903"], ["updated_at", "2018-09-21 02:35:15.859903"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-21 02:35:15.860694"], ["updated_at", "2018-09-21 02:35:15.860694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-21 02:35:15.862345"], ["updated_at", "2018-09-21 02:35:15.862345"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-21 02:35:15.863090"], ["updated_at", "2018-09-21 02:35:15.863090"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:35:15.868901"], ["updated_at", "2018-09-21 02:35:15.868901"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-21 02:35:15.869770"], ["updated_at", "2018-09-21 02:35:15.869770"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.870489"], ["updated_at", "2018-09-21 02:35:15.870489"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.872269"], ["updated_at", "2018-09-21 02:35:15.872269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.872953"], ["updated_at", "2018-09-21 02:35:15.872953"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.874637"], ["updated_at", "2018-09-21 02:35:15.874637"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.875554"], ["updated_at", "2018-09-21 02:35:15.875554"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.878062"], ["updated_at", "2018-09-21 02:35:15.878062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.882520"], ["updated_at", "2018-09-21 02:35:15.882520"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.883222"], ["updated_at", "2018-09-21 02:35:15.883222"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.884951"], ["updated_at", "2018-09-21 02:35:15.884951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.886758"], ["updated_at", "2018-09-21 02:35:15.886758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.888611"], ["updated_at", "2018-09-21 02:35:15.888611"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-21 02:35:15.892145"], ["updated_at", "2018-09-21 02:35:15.892145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-21 02:35:15.893095"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-21 02:35:15.894410"], ["updated_at", "2018-09-21 02:35:15.894410"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-21 02:35:15.895246"], ["updated_at", "2018-09-21 02:35:15.895246"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-21 02:35:15.898562"], ["updated_at", "2018-09-21 02:35:15.898562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:15.900316"], ["updated_at", "2018-09-21 02:35:15.900316"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-21 02:35:15.982518"], ["updated_at", "2018-09-21 02:35:15.982518"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-21 02:35:15.983370"], ["updated_at", "2018-09-21 02:35:15.983370"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:16.005062"], ["updated_at", "2018-09-21 02:35:16.005062"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:16.009950"], ["updated_at", "2018-09-21 02:35:16.009950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:16.012406"], ["updated_at", "2018-09-21 02:35:16.012406"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-21 02:35:16.016917"], ["updated_at", "2018-09-21 02:35:16.016917"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-21 02:35:16.019797"], ["updated_at", "2018-09-21 02:35:16.019797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 7ms (Views: 2.5ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.5ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.1ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.3ms) -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks_api). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 9ms (Views: 4.2ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.5ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 2.2ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.2ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.7ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.7ms) ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- --------------------------------------------------------------- LoadObjectAPITest: test_filter_access_object_load_without_param --------------------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ filter_access_to tried to find LoadMockObject from params[:id] (nil), because attribute_check is enabled and @load_mock_object isn't set, but failed: StandardError: Couldn't find LoadMockObject with id nil ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ filter_access_to tried to find LoadMockObject from params[:id] (nil), because attribute_check is enabled and @load_mock_object isn't set, but failed: StandardError: Couldn't find LoadMockObject with id nil ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects_api). Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects_api). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects_api). Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects_api). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- --------------------------------------------------------------- LoadObjectAPITest: test_filter_access_object_load_without_param --------------------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- --------------------------------------------------------------- LoadObjectAPITest: test_filter_access_object_load_without_param --------------------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------------------------- LoadObjectAPITest: test_filter_access_object_load_without_param --------------------------------------------------------------- ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 8ms (Views: 4.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms --------------------------------------------------------------- LoadObjectAPITest: test_filter_access_object_load_without_param --------------------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: No matching rules found for DELETE /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"DELETE /load_mock_objects/:id"], context :load_mock_objects). Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id for User with id (roles {:test_role=>true}, privileges [:"GET /load_mock_objects/:id"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- PluralizationAPITest: test_filter_access_people_controller ---------------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ---------------------------------------------------------- PluralizationAPITest: test_filter_access_people_controller ---------------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :people_api). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------------- PluralizationAPITest: test_filter_access_people_controller ---------------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :people_api). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :people_api). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2).  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ----------------------------------------------  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 04:34:25.797855"], ["updated_at", "2018-09-27 04:34:25.797855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 04:34:25.806226"], ["updated_at", "2018-09-27 04:34:25.806226"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.807045"], ["updated_at", "2018-09-27 04:34:25.807045"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 04:34:25.857693"], ["updated_at", "2018-09-27 04:34:25.857693"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.862396"], ["updated_at", "2018-09-27 04:34:25.862396"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.863275"], ["updated_at", "2018-09-27 04:34:25.863275"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.865640"], ["updated_at", "2018-09-27 04:34:25.865640"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-27 04:34:25.866400"], ["updated_at", "2018-09-27 04:34:25.866400"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 04:34:25.869304"], ["updated_at", "2018-09-27 04:34:25.869304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 04:34:25.870164"], ["updated_at", "2018-09-27 04:34:25.870164"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 04:34:25.872080"], ["updated_at", "2018-09-27 04:34:25.872080"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 04:34:25.872859"], ["updated_at", "2018-09-27 04:34:25.872859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.875970"], ["updated_at", "2018-09-27 04:34:25.875970"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.876743"], ["updated_at", "2018-09-27 04:34:25.876743"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.878923"], ["updated_at", "2018-09-27 04:34:25.878923"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.882424"], ["updated_at", "2018-09-27 04:34:25.882424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.884440"], ["updated_at", "2018-09-27 04:34:25.884440"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.888026"], ["updated_at", "2018-09-27 04:34:25.888026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.891382"], ["updated_at", "2018-09-27 04:34:25.891382"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.892158"], ["updated_at", "2018-09-27 04:34:25.892158"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.892860"], ["updated_at", "2018-09-27 04:34:25.892860"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.895545"], ["updated_at", "2018-09-27 04:34:25.895545"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.896378"], ["updated_at", "2018-09-27 04:34:25.896378"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-27 04:34:25.908393"], ["updated_at", "2018-09-27 04:34:25.908393"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-27 04:34:25.910241"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 04:34:25.912870"], ["updated_at", "2018-09-27 04:34:25.912870"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-27 04:34:25.913658"], ["updated_at", "2018-09-27 04:34:25.913658"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.917261"], ["updated_at", "2018-09-27 04:34:25.917261"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.936797"], ["updated_at", "2018-09-27 04:34:25.936797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.941032"], ["updated_at", "2018-09-27 04:34:25.941032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.941817"], ["updated_at", "2018-09-27 04:34:25.941817"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.949787"], ["updated_at", "2018-09-27 04:34:25.949787"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.950529"], ["updated_at", "2018-09-27 04:34:25.950529"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-27 04:34:25.953281"], ["updated_at", "2018-09-27 04:34:25.953281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-27 04:34:25.955527"], ["updated_at", "2018-09-27 04:34:25.955527"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.970614"], ["updated_at", "2018-09-27 04:34:25.970614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.971431"], ["updated_at", "2018-09-27 04:34:25.971431"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.974037"], ["updated_at", "2018-09-27 04:34:25.974037"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.974769"], ["updated_at", "2018-09-27 04:34:25.974769"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.976512"], ["updated_at", "2018-09-27 04:34:25.976512"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.980481"], ["updated_at", "2018-09-27 04:34:25.980481"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.986238"], ["updated_at", "2018-09-27 04:34:25.986238"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.991967"], ["updated_at", "2018-09-27 04:34:25.991967"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.993915"], ["updated_at", "2018-09-27 04:34:25.993915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.994668"], ["updated_at", "2018-09-27 04:34:25.994668"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.996390"], ["updated_at", "2018-09-27 04:34:25.996390"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:25.997154"], ["updated_at", "2018-09-27 04:34:25.997154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.006421"], ["updated_at", "2018-09-27 04:34:26.006421"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.007495"], ["updated_at", "2018-09-27 04:34:26.007495"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.008371"], ["updated_at", "2018-09-27 04:34:26.008371"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.011529"], ["updated_at", "2018-09-27 04:34:26.011529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.012325"], ["updated_at", "2018-09-27 04:34:26.012325"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.016336"], ["updated_at", "2018-09-27 04:34:26.016336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-27 04:34:26.021481"], ["updated_at", "2018-09-27 04:34:26.021481"]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.031142"], ["updated_at", "2018-09-27 04:34:26.031142"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.036676"], ["updated_at", "2018-09-27 04:34:26.036676"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.038853"], ["updated_at", "2018-09-27 04:34:26.038853"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 04:34:26.042160"], ["updated_at", "2018-09-27 04:34:26.042160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 04:34:26.042957"], ["updated_at", "2018-09-27 04:34:26.042957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 04:34:26.044515"], ["updated_at", "2018-09-27 04:34:26.044515"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 04:34:26.045311"], ["updated_at", "2018-09-27 04:34:26.045311"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.053074"], ["updated_at", "2018-09-27 04:34:26.053074"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-27 04:34:26.058203"], ["updated_at", "2018-09-27 04:34:26.058203"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.060742"], ["updated_at", "2018-09-27 04:34:26.060742"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.064605"], ["updated_at", "2018-09-27 04:34:26.064605"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.066556"], ["updated_at", "2018-09-27 04:34:26.066556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.068445"], ["updated_at", "2018-09-27 04:34:26.068445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.071739"], ["updated_at", "2018-09-27 04:34:26.071739"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.075414"], ["updated_at", "2018-09-27 04:34:26.075414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.077905"], ["updated_at", "2018-09-27 04:34:26.077905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.085318"], ["updated_at", "2018-09-27 04:34:26.085318"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.086276"], ["updated_at", "2018-09-27 04:34:26.086276"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.089186"], ["updated_at", "2018-09-27 04:34:26.089186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.090148"], ["updated_at", "2018-09-27 04:34:26.090148"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.096539"], ["updated_at", "2018-09-27 04:34:26.096539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.097476"], ["updated_at", "2018-09-27 04:34:26.097476"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.099788"], ["updated_at", "2018-09-27 04:34:26.099788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.105139"], ["updated_at", "2018-09-27 04:34:26.105139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.106001"], ["updated_at", "2018-09-27 04:34:26.106001"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.270317"], ["updated_at", "2018-09-27 04:34:26.270317"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.274780"], ["updated_at", "2018-09-27 04:34:26.274780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.277186"], ["updated_at", "2018-09-27 04:34:26.277186"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 3], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-27 04:34:26.302708"], ["updated_at", "2018-09-27 04:34:26.302708"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-27 04:34:26.303587"], ["updated_at", "2018-09-27 04:34:26.303587"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-27 04:34:26.320068"], ["updated_at", "2018-09-27 04:34:26.320068"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:26.324008"], ["updated_at", "2018-09-27 04:34:26.324008"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 1], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2).  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 3], ["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks).  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.131228"], ["updated_at", "2018-09-27 04:34:32.131228"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.132612"], ["updated_at", "2018-09-27 04:34:32.132612"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.136687"], ["updated_at", "2018-09-27 04:34:32.136687"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.137778"], ["updated_at", "2018-09-27 04:34:32.137778"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.140545"], ["updated_at", "2018-09-27 04:34:32.140545"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.143132"], ["updated_at", "2018-09-27 04:34:32.143132"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.144228"], ["updated_at", "2018-09-27 04:34:32.144228"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.191796"], ["updated_at", "2018-09-27 04:34:32.191796"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.193081"], ["updated_at", "2018-09-27 04:34:32.193081"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.195843"], ["updated_at", "2018-09-27 04:34:32.195843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.200414"], ["updated_at", "2018-09-27 04:34:32.200414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.211136"], ["updated_at", "2018-09-27 04:34:32.211136"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.2ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.220159"], ["updated_at", "2018-09-27 04:34:32.220159"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.228981"], ["updated_at", "2018-09-27 04:34:32.228981"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.236886"], ["updated_at", "2018-09-27 04:34:32.236886"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.242573"], ["updated_at", "2018-09-27 04:34:32.242573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.243550"], ["updated_at", "2018-09-27 04:34:32.243550"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.250100"], ["updated_at", "2018-09-27 04:34:32.250100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.252603"], ["updated_at", "2018-09-27 04:34:32.252603"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.254772"], ["updated_at", "2018-09-27 04:34:32.254772"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.258050"], ["updated_at", "2018-09-27 04:34:32.258050"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.261565"], ["updated_at", "2018-09-27 04:34:32.261565"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.262369"], ["updated_at", "2018-09-27 04:34:32.262369"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.263082"], ["updated_at", "2018-09-27 04:34:32.263082"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.282978"], ["updated_at", "2018-09-27 04:34:32.282978"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.283795"], ["updated_at", "2018-09-27 04:34:32.283795"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.285927"], ["updated_at", "2018-09-27 04:34:32.285927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.286737"], ["updated_at", "2018-09-27 04:34:32.286737"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.287793"], ["updated_at", "2018-09-27 04:34:32.287793"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-27 04:34:32.291326"], ["updated_at", "2018-09-27 04:34:32.291326"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.293333"], ["updated_at", "2018-09-27 04:34:32.293333"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.298673"], ["updated_at", "2018-09-27 04:34:32.298673"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.302103"], ["updated_at", "2018-09-27 04:34:32.302103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.302891"], ["updated_at", "2018-09-27 04:34:32.302891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-27 04:34:32.308558"], ["updated_at", "2018-09-27 04:34:32.308558"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-27 04:34:32.310619"], ["updated_at", "2018-09-27 04:34:32.310619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 04:34:32.319845"], ["updated_at", "2018-09-27 04:34:32.319845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 04:34:32.320734"], ["updated_at", "2018-09-27 04:34:32.320734"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 04:34:32.322343"], ["updated_at", "2018-09-27 04:34:32.322343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 04:34:32.323096"], ["updated_at", "2018-09-27 04:34:32.323096"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.329568"], ["updated_at", "2018-09-27 04:34:32.329568"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-27 04:34:32.330686"], ["updated_at", "2018-09-27 04:34:32.330686"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.333774"], ["updated_at", "2018-09-27 04:34:32.333774"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-27 04:34:32.346595"], ["updated_at", "2018-09-27 04:34:32.346595"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-27 04:34:32.348178"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 04:34:32.349642"], ["updated_at", "2018-09-27 04:34:32.349642"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-27 04:34:32.350399"], ["updated_at", "2018-09-27 04:34:32.350399"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Country Destroy (0.0ms) DELETE FROM "countries" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.354252"], ["updated_at", "2018-09-27 04:34:32.354252"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.355361"], ["updated_at", "2018-09-27 04:34:32.355361"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.357819"], ["updated_at", "2018-09-27 04:34:32.357819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.358693"], ["updated_at", "2018-09-27 04:34:32.358693"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.361185"], ["updated_at", "2018-09-27 04:34:32.361185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.365419"], ["updated_at", "2018-09-27 04:34:32.365419"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.367235"], ["updated_at", "2018-09-27 04:34:32.367235"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.370377"], ["updated_at", "2018-09-27 04:34:32.370377"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.372473"], ["updated_at", "2018-09-27 04:34:32.372473"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 04:34:32.375502"], ["updated_at", "2018-09-27 04:34:32.375502"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 04:34:32.376332"], ["updated_at", "2018-09-27 04:34:32.376332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 04:34:32.378028"], ["updated_at", "2018-09-27 04:34:32.378028"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 04:34:32.378778"], ["updated_at", "2018-09-27 04:34:32.378778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.382207"], ["updated_at", "2018-09-27 04:34:32.382207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.383100"], ["updated_at", "2018-09-27 04:34:32.383100"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.389689"], ["updated_at", "2018-09-27 04:34:32.389689"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.391813"], ["updated_at", "2018-09-27 04:34:32.391813"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-27 04:34:32.396009"], ["updated_at", "2018-09-27 04:34:32.396009"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 04:34:32.409342"], ["updated_at", "2018-09-27 04:34:32.409342"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.413737"], ["updated_at", "2018-09-27 04:34:32.413737"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.414615"], ["updated_at", "2018-09-27 04:34:32.414615"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.417630"], ["updated_at", "2018-09-27 04:34:32.417630"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 04:34:32.422285"], ["updated_at", "2018-09-27 04:34:32.422285"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 04:34:32.423061"], ["updated_at", "2018-09-27 04:34:32.423061"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.423784"], ["updated_at", "2018-09-27 04:34:32.423784"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.437269"], ["updated_at", "2018-09-27 04:34:32.437269"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.438144"], ["updated_at", "2018-09-27 04:34:32.438144"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.447103"], ["updated_at", "2018-09-27 04:34:32.447103"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.447893"], ["updated_at", "2018-09-27 04:34:32.447893"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.449938"], ["updated_at", "2018-09-27 04:34:32.449938"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.454224"], ["updated_at", "2018-09-27 04:34:32.454224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.455171"], ["updated_at", "2018-09-27 04:34:32.455171"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-27 04:34:32.692463"], ["updated_at", "2018-09-27 04:34:32.692463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-27 04:34:32.693541"], ["updated_at", "2018-09-27 04:34:32.693541"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.714872"], ["updated_at", "2018-09-27 04:34:32.714872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.720519"], ["updated_at", "2018-09-27 04:34:32.720519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.723286"], ["updated_at", "2018-09-27 04:34:32.723286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.0ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:34:32.729562"], ["updated_at", "2018-09-27 04:34:32.729562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-27 04:34:32.741788"], ["updated_at", "2018-09-27 04:34:32.741788"]]  (0.0ms) commit transaction TestModel Destroy (0.0ms) DELETE FROM "test_models" ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ----------------------------------------------------  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-27 04:35:45.541033"], ["updated_at", "2018-09-27 04:35:45.541033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-27 04:35:45.542143"], ["updated_at", "2018-09-27 04:35:45.542143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.2ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.589789"], ["updated_at", "2018-09-27 04:35:45.589789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.596962"], ["updated_at", "2018-09-27 04:35:45.596962"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.599629"], ["updated_at", "2018-09-27 04:35:45.599629"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.606215"], ["updated_at", "2018-09-27 04:35:45.606215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-27 04:35:45.624122"], ["updated_at", "2018-09-27 04:35:45.624122"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 3]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 3]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"5"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.815162"], ["updated_at", "2018-09-27 04:35:45.815162"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.817299"], ["updated_at", "2018-09-27 04:35:45.817299"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-27 04:35:45.820703"], ["updated_at", "2018-09-27 04:35:45.820703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-27 04:35:45.822638"], ["updated_at", "2018-09-27 04:35:45.822638"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.830004"], ["updated_at", "2018-09-27 04:35:45.830004"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.831687"], ["updated_at", "2018-09-27 04:35:45.831687"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.832409"], ["updated_at", "2018-09-27 04:35:45.832409"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.834569"], ["updated_at", "2018-09-27 04:35:45.834569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.835290"], ["updated_at", "2018-09-27 04:35:45.835290"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.836933"], ["updated_at", "2018-09-27 04:35:45.836933"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-27 04:35:45.837751"], ["updated_at", "2018-09-27 04:35:45.837751"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 04:35:45.839823"], ["updated_at", "2018-09-27 04:35:45.839823"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 04:35:45.840544"], ["updated_at", "2018-09-27 04:35:45.840544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 04:35:45.842417"], ["updated_at", "2018-09-27 04:35:45.842417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 04:35:45.843170"], ["updated_at", "2018-09-27 04:35:45.843170"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 04:35:45.850295"], ["updated_at", "2018-09-27 04:35:45.850295"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 04:35:45.851247"], ["updated_at", "2018-09-27 04:35:45.851247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.852030"], ["updated_at", "2018-09-27 04:35:45.852030"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.854126"], ["updated_at", "2018-09-27 04:35:45.854126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.855024"], ["updated_at", "2018-09-27 04:35:45.855024"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.855929"], ["updated_at", "2018-09-27 04:35:45.855929"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.858388"], ["updated_at", "2018-09-27 04:35:45.858388"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.863658"], ["updated_at", "2018-09-27 04:35:45.863658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.869598"], ["updated_at", "2018-09-27 04:35:45.869598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.870913"], ["updated_at", "2018-09-27 04:35:45.870913"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.873405"], ["updated_at", "2018-09-27 04:35:45.873405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.877639"], ["updated_at", "2018-09-27 04:35:45.877639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.882732"], ["updated_at", "2018-09-27 04:35:45.882732"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.890697"], ["updated_at", "2018-09-27 04:35:45.890697"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.892093"], ["updated_at", "2018-09-27 04:35:45.892093"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.894227"], ["updated_at", "2018-09-27 04:35:45.894227"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.894950"], ["updated_at", "2018-09-27 04:35:45.894950"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-27 04:35:45.899161"], ["updated_at", "2018-09-27 04:35:45.899161"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.904780"], ["updated_at", "2018-09-27 04:35:45.904780"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.912035"], ["updated_at", "2018-09-27 04:35:45.912035"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.914660"], ["updated_at", "2018-09-27 04:35:45.914660"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.916945"], ["updated_at", "2018-09-27 04:35:45.916945"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.920312"], ["updated_at", "2018-09-27 04:35:45.920312"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.922309"], ["updated_at", "2018-09-27 04:35:45.922309"]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.925927"], ["updated_at", "2018-09-27 04:35:45.925927"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.926767"], ["updated_at", "2018-09-27 04:35:45.926767"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.940994"], ["updated_at", "2018-09-27 04:35:45.940994"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.941863"], ["updated_at", "2018-09-27 04:35:45.941863"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.950463"], ["updated_at", "2018-09-27 04:35:45.950463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.954015"], ["updated_at", "2018-09-27 04:35:45.954015"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.954788"], ["updated_at", "2018-09-27 04:35:45.954788"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.956839"], ["updated_at", "2018-09-27 04:35:45.956839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.960147"], ["updated_at", "2018-09-27 04:35:45.960147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.962411"], ["updated_at", "2018-09-27 04:35:45.962411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.966149"], ["updated_at", "2018-09-27 04:35:45.966149"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.970733"], ["updated_at", "2018-09-27 04:35:45.970733"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.971520"], ["updated_at", "2018-09-27 04:35:45.971520"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.973758"], ["updated_at", "2018-09-27 04:35:45.973758"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.974492"], ["updated_at", "2018-09-27 04:35:45.974492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.979190"], ["updated_at", "2018-09-27 04:35:45.979190"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.979960"], ["updated_at", "2018-09-27 04:35:45.979960"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.980685"], ["updated_at", "2018-09-27 04:35:45.980685"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.983003"], ["updated_at", "2018-09-27 04:35:45.983003"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.987281"], ["updated_at", "2018-09-27 04:35:45.987281"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.988112"], ["updated_at", "2018-09-27 04:35:45.988112"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.990525"], ["updated_at", "2018-09-27 04:35:45.990525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:45.991405"], ["updated_at", "2018-09-27 04:35:45.991405"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-27 04:35:45.999373"], ["updated_at", "2018-09-27 04:35:45.999373"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-27 04:35:46.001031"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 04:35:46.001977"], ["updated_at", "2018-09-27 04:35:46.001977"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-27 04:35:46.002854"], ["updated_at", "2018-09-27 04:35:46.002854"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-27 04:35:46.007208"], ["updated_at", "2018-09-27 04:35:46.007208"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.021539"], ["updated_at", "2018-09-27 04:35:46.021539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.025147"], ["updated_at", "2018-09-27 04:35:46.025147"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.025941"], ["updated_at", "2018-09-27 04:35:46.025941"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 04:35:46.028106"], ["updated_at", "2018-09-27 04:35:46.028106"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 04:35:46.028916"], ["updated_at", "2018-09-27 04:35:46.028916"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 04:35:46.030614"], ["updated_at", "2018-09-27 04:35:46.030614"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 04:35:46.031499"], ["updated_at", "2018-09-27 04:35:46.031499"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 4]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.047514"], ["updated_at", "2018-09-27 04:35:46.047514"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.048437"], ["updated_at", "2018-09-27 04:35:46.048437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.050740"], ["updated_at", "2018-09-27 04:35:46.050740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 04:35:46.054983"], ["updated_at", "2018-09-27 04:35:46.054983"]]  (3.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 04:35:46.066533"], ["updated_at", "2018-09-27 04:35:46.066533"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2).  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.262485"], ["updated_at", "2018-09-27 22:05:49.262485"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 6]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 8], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-27 22:05:49.341838"], ["updated_at", "2018-09-27 22:05:49.341838"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-27 22:05:49.342777"], ["updated_at", "2018-09-27 22:05:49.342777"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.366918"], ["updated_at", "2018-09-27 22:05:49.366918"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.374130"], ["updated_at", "2018-09-27 22:05:49.374130"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.377507"], ["updated_at", "2018-09-27 22:05:49.377507"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 9]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-27 22:05:49.391121"], ["updated_at", "2018-09-27 22:05:49.391121"]]  (0.0ms) commit transaction SQL (0.1ms) DELETE FROM "test_models" ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:test_role_restricted=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.0ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"1"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 3], ["id", 4]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"5"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-27 22:05:49.623999"], ["updated_at", "2018-09-27 22:05:49.623999"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-27 22:05:49.625533"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 22:05:49.631155"], ["updated_at", "2018-09-27 22:05:49.631155"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-27 22:05:49.632222"], ["updated_at", "2018-09-27 22:05:49.632222"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.636833"], ["updated_at", "2018-09-27 22:05:49.636833"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.641638"], ["updated_at", "2018-09-27 22:05:49.641638"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.1ms) DELETE FROM "test_attr_throughs" SQL (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.659032"], ["updated_at", "2018-09-27 22:05:49.659032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.660995"], ["updated_at", "2018-09-27 22:05:49.660995"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.663967"], ["updated_at", "2018-09-27 22:05:49.663967"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.664649"], ["updated_at", "2018-09-27 22:05:49.664649"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.666319"], ["updated_at", "2018-09-27 22:05:49.666319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.666953"], ["updated_at", "2018-09-27 22:05:49.666953"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.668343"], ["updated_at", "2018-09-27 22:05:49.668343"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.669044"], ["updated_at", "2018-09-27 22:05:49.669044"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.674138"], ["updated_at", "2018-09-27 22:05:49.674138"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.676042"], ["updated_at", "2018-09-27 22:05:49.676042"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.678992"], ["updated_at", "2018-09-27 22:05:49.678992"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.679703"], ["updated_at", "2018-09-27 22:05:49.679703"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.684031"], ["updated_at", "2018-09-27 22:05:49.684031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SQL (0.0ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.689160"], ["updated_at", "2018-09-27 22:05:49.689160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.689895"], ["updated_at", "2018-09-27 22:05:49.689895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.691560"], ["updated_at", "2018-09-27 22:05:49.691560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.694317"], ["updated_at", "2018-09-27 22:05:49.694317"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.695990"], ["updated_at", "2018-09-27 22:05:49.695990"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-27 22:05:49.696705"], ["updated_at", "2018-09-27 22:05:49.696705"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.698628"], ["updated_at", "2018-09-27 22:05:49.698628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.700277"], ["updated_at", "2018-09-27 22:05:49.700277"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.702900"], ["updated_at", "2018-09-27 22:05:49.702900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.703580"], ["updated_at", "2018-09-27 22:05:49.703580"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 22:05:49.705598"], ["updated_at", "2018-09-27 22:05:49.705598"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 22:05:49.706332"], ["updated_at", "2018-09-27 22:05:49.706332"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 22:05:49.707900"], ["updated_at", "2018-09-27 22:05:49.707900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 22:05:49.708696"], ["updated_at", "2018-09-27 22:05:49.708696"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.715136"], ["updated_at", "2018-09-27 22:05:49.715136"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.715880"], ["updated_at", "2018-09-27 22:05:49.715880"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.716603"], ["updated_at", "2018-09-27 22:05:49.716603"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.719334"], ["updated_at", "2018-09-27 22:05:49.719334"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.723523"], ["updated_at", "2018-09-27 22:05:49.723523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.724195"], ["updated_at", "2018-09-27 22:05:49.724195"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.728874"], ["updated_at", "2018-09-27 22:05:49.728874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.729621"], ["updated_at", "2018-09-27 22:05:49.729621"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.737909"], ["updated_at", "2018-09-27 22:05:49.737909"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.738659"], ["updated_at", "2018-09-27 22:05:49.738659"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.740368"], ["updated_at", "2018-09-27 22:05:49.740368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.743215"], ["updated_at", "2018-09-27 22:05:49.743215"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.743921"], ["updated_at", "2018-09-27 22:05:49.743921"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.746072"], ["updated_at", "2018-09-27 22:05:49.746072"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.752363"], ["updated_at", "2018-09-27 22:05:49.752363"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.756185"], ["updated_at", "2018-09-27 22:05:49.756185"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.764581"], ["updated_at", "2018-09-27 22:05:49.764581"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.767724"], ["updated_at", "2018-09-27 22:05:49.767724"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.769477"], ["updated_at", "2018-09-27 22:05:49.769477"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.771252"], ["updated_at", "2018-09-27 22:05:49.771252"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.773797"], ["updated_at", "2018-09-27 22:05:49.773797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.774458"], ["updated_at", "2018-09-27 22:05:49.774458"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.775112"], ["updated_at", "2018-09-27 22:05:49.775112"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.777280"], ["updated_at", "2018-09-27 22:05:49.777280"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.777916"], ["updated_at", "2018-09-27 22:05:49.777916"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.779310"], ["updated_at", "2018-09-27 22:05:49.779310"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 22:05:49.783453"], ["updated_at", "2018-09-27 22:05:49.783453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 22:05:49.784262"], ["updated_at", "2018-09-27 22:05:49.784262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.785018"], ["updated_at", "2018-09-27 22:05:49.785018"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.786747"], ["updated_at", "2018-09-27 22:05:49.786747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.787561"], ["updated_at", "2018-09-27 22:05:49.787561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 22:05:49.793119"], ["updated_at", "2018-09-27 22:05:49.793119"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 22:05:49.793889"], ["updated_at", "2018-09-27 22:05:49.793889"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 22:05:49.795426"], ["updated_at", "2018-09-27 22:05:49.795426"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 22:05:49.796217"], ["updated_at", "2018-09-27 22:05:49.796217"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.799379"], ["updated_at", "2018-09-27 22:05:49.799379"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.803459"], ["updated_at", "2018-09-27 22:05:49.803459"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.804146"], ["updated_at", "2018-09-27 22:05:49.804146"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.817738"], ["updated_at", "2018-09-27 22:05:49.817738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.818453"], ["updated_at", "2018-09-27 22:05:49.818453"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 22:05:49.822834"], ["updated_at", "2018-09-27 22:05:49.822834"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-27 22:05:49.827207"], ["updated_at", "2018-09-27 22:05:49.827207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-27 22:05:49.837453"], ["updated_at", "2018-09-27 22:05:49.837453"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-27 22:05:49.839694"], ["updated_at", "2018-09-27 22:05:49.839694"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-27 22:05:49.846529"], ["updated_at", "2018-09-27 22:05:49.846529"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:05:49.848183"], ["updated_at", "2018-09-27 22:05:49.848183"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.3ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.328951"], ["updated_at", "2018-09-27 22:08:34.328951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-27 22:08:34.335972"], ["updated_at", "2018-09-27 22:08:34.335972"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-27 22:08:34.336832"], ["updated_at", "2018-09-27 22:08:34.336832"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-27 22:08:34.361855"], ["updated_at", "2018-09-27 22:08:34.361855"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.363790"], ["updated_at", "2018-09-27 22:08:34.363790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.367900"], ["updated_at", "2018-09-27 22:08:34.367900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.370174"], ["updated_at", "2018-09-27 22:08:34.370174"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 3], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 3], ["id", 2]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 1], ["id", 2]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"3"}} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 4]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 4]] Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller ---------------------------------------------------  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.1ms) DELETE FROM "branches" SQL (0.2ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.722874"], ["updated_at", "2018-09-27 22:08:34.722874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.728791"], ["updated_at", "2018-09-27 22:08:34.728791"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.729704"], ["updated_at", "2018-09-27 22:08:34.729704"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.734313"], ["updated_at", "2018-09-27 22:08:34.734313"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.736002"], ["updated_at", "2018-09-27 22:08:34.736002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.738668"], ["updated_at", "2018-09-27 22:08:34.738668"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.743168"], ["updated_at", "2018-09-27 22:08:34.743168"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.747076"], ["updated_at", "2018-09-27 22:08:34.747076"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.750925"], ["updated_at", "2018-09-27 22:08:34.750925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.751577"], ["updated_at", "2018-09-27 22:08:34.751577"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.753576"], ["updated_at", "2018-09-27 22:08:34.753576"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.754192"], ["updated_at", "2018-09-27 22:08:34.754192"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-27 22:08:34.757443"], ["updated_at", "2018-09-27 22:08:34.757443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-09-27 22:08:34.758754"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 22:08:34.759672"], ["updated_at", "2018-09-27 22:08:34.759672"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-27 22:08:34.760830"], ["updated_at", "2018-09-27 22:08:34.760830"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.764862"], ["updated_at", "2018-09-27 22:08:34.764862"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.777380"], ["updated_at", "2018-09-27 22:08:34.777380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.778292"], ["updated_at", "2018-09-27 22:08:34.778292"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.779052"], ["updated_at", "2018-09-27 22:08:34.779052"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.781905"], ["updated_at", "2018-09-27 22:08:34.781905"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.782773"], ["updated_at", "2018-09-27 22:08:34.782773"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.790908"], ["updated_at", "2018-09-27 22:08:34.790908"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.791673"], ["updated_at", "2018-09-27 22:08:34.791673"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 22:08:34.793567"], ["updated_at", "2018-09-27 22:08:34.793567"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 22:08:34.794368"], ["updated_at", "2018-09-27 22:08:34.794368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.795114"], ["updated_at", "2018-09-27 22:08:34.795114"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-27 22:08:34.801258"], ["updated_at", "2018-09-27 22:08:34.801258"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.809417"], ["updated_at", "2018-09-27 22:08:34.809417"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.810167"], ["updated_at", "2018-09-27 22:08:34.810167"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.810841"], ["updated_at", "2018-09-27 22:08:34.810841"]]  (0.0ms) commit transaction TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.814729"], ["updated_at", "2018-09-27 22:08:34.814729"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.1ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 22:08:34.818368"], ["updated_at", "2018-09-27 22:08:34.818368"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 22:08:34.819248"], ["updated_at", "2018-09-27 22:08:34.819248"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 22:08:34.821656"], ["updated_at", "2018-09-27 22:08:34.821656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 22:08:34.822639"], ["updated_at", "2018-09-27 22:08:34.822639"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.825964"], ["updated_at", "2018-09-27 22:08:34.825964"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.826652"], ["updated_at", "2018-09-27 22:08:34.826652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.828315"], ["updated_at", "2018-09-27 22:08:34.828315"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.830949"], ["updated_at", "2018-09-27 22:08:34.830949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.831628"], ["updated_at", "2018-09-27 22:08:34.831628"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.837589"], ["updated_at", "2018-09-27 22:08:34.837589"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.839450"], ["updated_at", "2018-09-27 22:08:34.839450"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.841262"], ["updated_at", "2018-09-27 22:08:34.841262"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.844172"], ["updated_at", "2018-09-27 22:08:34.844172"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.844923"], ["updated_at", "2018-09-27 22:08:34.844923"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.847114"], ["updated_at", "2018-09-27 22:08:34.847114"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.848778"], ["updated_at", "2018-09-27 22:08:34.848778"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.851619"], ["updated_at", "2018-09-27 22:08:34.851619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.852353"], ["updated_at", "2018-09-27 22:08:34.852353"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.854726"], ["updated_at", "2018-09-27 22:08:34.854726"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.855500"], ["updated_at", "2018-09-27 22:08:34.855500"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.0ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.857952"], ["updated_at", "2018-09-27 22:08:34.857952"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.858697"], ["updated_at", "2018-09-27 22:08:34.858697"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.860320"], ["updated_at", "2018-09-27 22:08:34.860320"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.862303"], ["updated_at", "2018-09-27 22:08:34.862303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.865466"], ["updated_at", "2018-09-27 22:08:34.865466"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 22:08:34.872718"], ["updated_at", "2018-09-27 22:08:34.872718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 22:08:34.873550"], ["updated_at", "2018-09-27 22:08:34.873550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 22:08:34.875178"], ["updated_at", "2018-09-27 22:08:34.875178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 22:08:34.875911"], ["updated_at", "2018-09-27 22:08:34.875911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.881562"], ["updated_at", "2018-09-27 22:08:34.881562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-27 22:08:34.882369"], ["updated_at", "2018-09-27 22:08:34.882369"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.884543"], ["updated_at", "2018-09-27 22:08:34.884543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.885240"], ["updated_at", "2018-09-27 22:08:34.885240"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.886943"], ["updated_at", "2018-09-27 22:08:34.886943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.890330"], ["updated_at", "2018-09-27 22:08:34.890330"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.891341"], ["updated_at", "2018-09-27 22:08:34.891341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-27 22:08:34.896634"], ["updated_at", "2018-09-27 22:08:34.896634"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-27 22:08:34.898601"], ["updated_at", "2018-09-27 22:08:34.898601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-27 22:08:34.905957"], ["updated_at", "2018-09-27 22:08:34.905957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.907792"], ["updated_at", "2018-09-27 22:08:34.907792"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.911424"], ["updated_at", "2018-09-27 22:08:34.911424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.3ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 22:08:34.918139"], ["updated_at", "2018-09-27 22:08:34.918139"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.921963"], ["updated_at", "2018-09-27 22:08:34.921963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.922677"], ["updated_at", "2018-09-27 22:08:34.922677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.938746"], ["updated_at", "2018-09-27 22:08:34.938746"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.943456"], ["updated_at", "2018-09-27 22:08:34.943456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:08:34.948452"], ["updated_at", "2018-09-27 22:08:34.948452"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (2.8ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms) CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms) CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms) CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL ) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:44.987420"], ["updated_at", "2018-09-27 22:29:44.987420"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 0], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.012224"], ["updated_at", "2018-09-27 22:29:45.012224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.015789"], ["updated_at", "2018-09-27 22:29:45.015789"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "branches" SQL (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 3]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 4]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-09-27 22:29:45.043996"], ["updated_at", "2018-09-27 22:29:45.043996"]]  (0.0ms) commit transaction SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 8], ["id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 8]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 8]] SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_model_security_models" SQL (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-09-27 22:29:45.061128"], ["updated_at", "2018-09-27 22:29:45.061128"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-09-27 22:29:45.062372"], ["updated_at", "2018-09-27 22:29:45.062372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.3ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_model_security_models" DEFAULT VALUES SQL (0.0ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT 1 [["test_model_security_model_id", 2], ["id", 1]] SQL (0.0ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.091864"], ["updated_at", "2018-09-27 22:29:45.091864"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT 1 [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "nested_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "nested_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.298443"], ["updated_at", "2018-09-27 22:29:45.298443"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.299500"], ["updated_at", "2018-09-27 22:29:45.299500"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 2], ["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "branch_id") VALUES (?, ?) [["attr", 3], ["branch_id", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 22:29:45.314033"], ["updated_at", "2018-09-27 22:29:45.314033"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 22:29:45.314900"], ["updated_at", "2018-09-27 22:29:45.314900"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 22:29:45.316801"], ["updated_at", "2018-09-27 22:29:45.316801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 22:29:45.317609"], ["updated_at", "2018-09-27 22:29:45.317609"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.321097"], ["updated_at", "2018-09-27 22:29:45.321097"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.322349"], ["updated_at", "2018-09-27 22:29:45.322349"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.327346"], ["updated_at", "2018-09-27 22:29:45.327346"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.328111"], ["updated_at", "2018-09-27 22:29:45.328111"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.330505"], ["updated_at", "2018-09-27 22:29:45.330505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 111], ["test_model_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.334802"], ["updated_at", "2018-09-27 22:29:45.334802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.339288"], ["updated_at", "2018-09-27 22:29:45.339288"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 3], ["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.344354"], ["updated_at", "2018-09-27 22:29:45.344354"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.345072"], ["updated_at", "2018-09-27 22:29:45.345072"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.346710"], ["updated_at", "2018-09-27 22:29:45.346710"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.351548"], ["updated_at", "2018-09-27 22:29:45.351548"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.352327"], ["updated_at", "2018-09-27 22:29:45.352327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.353038"], ["updated_at", "2018-09-27 22:29:45.353038"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.355145"], ["updated_at", "2018-09-27 22:29:45.355145"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.356837"], ["updated_at", "2018-09-27 22:29:45.356837"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.359457"], ["updated_at", "2018-09-27 22:29:45.359457"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.360135"], ["updated_at", "2018-09-27 22:29:45.360135"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.366359"], ["updated_at", "2018-09-27 22:29:45.366359"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.370416"], ["updated_at", "2018-09-27 22:29:45.370416"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.372064"], ["updated_at", "2018-09-27 22:29:45.372064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.374631"], ["updated_at", "2018-09-27 22:29:45.374631"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) SQL (0.0ms) DELETE FROM "companies" SQL (0.0ms) DELETE FROM "branches" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 22:29:45.395492"], ["updated_at", "2018-09-27 22:29:45.395492"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attr_throughs" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.400643"], ["updated_at", "2018-09-27 22:29:45.400643"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.401374"], ["updated_at", "2018-09-27 22:29:45.401374"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.403703"], ["updated_at", "2018-09-27 22:29:45.403703"]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.407049"], ["updated_at", "2018-09-27 22:29:45.407049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.408859"], ["updated_at", "2018-09-27 22:29:45.408859"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-09-27 22:29:45.414395"], ["updated_at", "2018-09-27 22:29:45.414395"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_1"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "branches" ("name", "company_id") VALUES (?, ?) [["name", "branch_1"], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("name", "country_id") VALUES (?, ?) [["name", "company_2"], ["country_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT 1 [["country_id", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.423943"], ["updated_at", "2018-09-27 22:29:45.423943"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.424874"], ["updated_at", "2018-09-27 22:29:45.424874"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.426547"], ["updated_at", "2018-09-27 22:29:45.426547"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.428540"], ["updated_at", "2018-09-27 22:29:45.428540"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.430488"], ["updated_at", "2018-09-27 22:29:45.430488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.435282"], ["updated_at", "2018-09-27 22:29:45.435282"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.436247"], ["updated_at", "2018-09-27 22:29:45.436247"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.438414"], ["updated_at", "2018-09-27 22:29:45.438414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.439150"], ["updated_at", "2018-09-27 22:29:45.439150"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]]  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.448275"], ["updated_at", "2018-09-27 22:29:45.448275"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-09-27 22:29:45.449215"], ["updated_at", "2018-09-27 22:29:45.449215"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT 1 SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.451355"], ["updated_at", "2018-09-27 22:29:45.451355"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-09-27 22:29:45.453658"], ["updated_at", "2018-09-27 22:29:45.453658"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-09-27 22:29:45.454732"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-09-27 22:29:45.455600"], ["updated_at", "2018-09-27 22:29:45.455600"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-09-27 22:29:45.456334"], ["updated_at", "2018-09-27 22:29:45.456334"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "countries"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.461445"], ["updated_at", "2018-09-27 22:29:45.461445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.462434"], ["updated_at", "2018-09-27 22:29:45.462434"]]  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.467212"], ["updated_at", "2018-09-27 22:29:45.467212"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.467928"], ["updated_at", "2018-09-27 22:29:45.467928"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.468607"], ["updated_at", "2018-09-27 22:29:45.468607"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) SQL (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.471026"], ["updated_at", "2018-09-27 22:29:45.471026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.471715"], ["updated_at", "2018-09-27 22:29:45.471715"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.476286"], ["updated_at", "2018-09-27 22:29:45.476286"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.480825"], ["updated_at", "2018-09-27 22:29:45.480825"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.481648"], ["updated_at", "2018-09-27 22:29:45.481648"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.483809"], ["updated_at", "2018-09-27 22:29:45.483809"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.487478"], ["updated_at", "2018-09-27 22:29:45.487478"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 22:29:45.492045"], ["updated_at", "2018-09-27 22:29:45.492045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-09-27 22:29:45.492912"], ["updated_at", "2018-09-27 22:29:45.492912"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.493600"], ["updated_at", "2018-09-27 22:29:45.493600"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SQL (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-09-27 22:29:45.497411"], ["updated_at", "2018-09-27 22:29:45.497411"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-09-27 22:29:45.499386"], ["updated_at", "2018-09-27 22:29:45.499386"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 2]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.507976"], ["updated_at", "2018-09-27 22:29:45.507976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.508845"], ["updated_at", "2018-09-27 22:29:45.508845"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("attr", "test_model_id") VALUES (?, ?) [["attr", 2], ["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.517380"], ["updated_at", "2018-09-27 22:29:45.517380"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) SQL (0.0ms) DELETE FROM "test_attrs" SQL (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.521204"], ["updated_at", "2018-09-27 22:29:45.521204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-09-27 22:29:45.524347"], ["updated_at", "2018-09-27 22:29:45.524347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.526175"], ["updated_at", "2018-09-27 22:29:45.526175"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-09-27 22:29:45.529790"], ["updated_at", "2018-09-27 22:29:45.529790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-09-27 22:29:45.530613"], ["updated_at", "2018-09-27 22:29:45.530613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-09-27 22:29:45.532662"], ["updated_at", "2018-09-27 22:29:45.532662"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-09-27 22:29:45.533573"], ["updated_at", "2018-09-27 22:29:45.533573"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT 1 [["test_model_id", 3]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) SQL (0.0ms) DELETE FROM "test_models" SQL (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.539925"], ["updated_at", "2018-09-27 22:29:45.539925"]]  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-09-27 22:29:45.540728"], ["updated_at", "2018-09-27 22:29:45.540728"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) SQL (0.0ms) DELETE FROM "test_models" --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"params"=>{"id"=>"1"}} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 2], ["id", 2]] Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction SQL (0.0ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"5"} User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]] User Exists (0.0ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT 1 [["id", 4], ["id", 5]] Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms) --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 8ms (Views: 7.4ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by SpecificMocksController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#test_action as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.7ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 1.1ms) Processing by AccessOverwritesController#test_action as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.2ms) Processing by CommonChild2Controller#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 1.4ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#create as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 1.1ms) Processing by Name::SpacedThingsController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 1.5ms) Processing by AllMocksController#view as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by AllMocksController#show as HTML Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Completed 500 Internal Server Error in 9ms ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 7ms (Views: 6.5ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 4ms (Views: 0.4ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.1ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.1ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.7ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.4ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.3ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.3ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.6ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 4ms (Views: 3.9ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.3ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.1ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 6ms (Views: 2.6ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 0ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 3.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.5ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 0 in 1ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.8ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 2.7ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.2ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 6ms (Views: 2.7ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.3ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.1ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Completed 500 Internal Server Error in 0ms ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Completed 500 Internal Server Error in 0ms --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 0ms --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Completed 500 Internal Server Error in 0ms ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 8ms (Views: 4.8ms) ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.1ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.2ms) -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.1ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.1ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms)  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.2ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.2ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction Company Create (0.2ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.797082"], ["updated_at", "2018-12-18 22:01:00.797082"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-12-18 22:01:00.809630"], ["updated_at", "2018-12-18 22:01:00.809630"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.5ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.830950"], ["updated_at", "2018-12-18 22:01:00.830950"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.834291"], ["updated_at", "2018-12-18 22:01:00.834291"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 3]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 4], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.4ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.1ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-18 22:01:00.866864"], ["updated_at", "2018-12-18 22:01:00.866864"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-18 22:01:00.868872"], ["updated_at", "2018-12-18 22:01:00.868872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.870407"], ["updated_at", "2018-12-18 22:01:00.870407"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.873868"], ["updated_at", "2018-12-18 22:01:00.873868"]]  (0.0ms) commit transaction  (0.4ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.875549"], ["updated_at", "2018-12-18 22:01:00.875549"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.876953"], ["updated_at", "2018-12-18 22:01:00.876953"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.881222"], ["updated_at", "2018-12-18 22:01:00.881222"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.884772"], ["updated_at", "2018-12-18 22:01:00.884772"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.889551"], ["updated_at", "2018-12-18 22:01:00.889551"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.896336"], ["updated_at", "2018-12-18 22:01:00.896336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-18 22:01:00.906207"], ["updated_at", "2018-12-18 22:01:00.906207"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-18 22:01:00.907933"], ["updated_at", "2018-12-18 22:01:00.907933"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-18 22:01:00.911755"], ["updated_at", "2018-12-18 22:01:00.911755"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-18 22:01:00.913143"], ["updated_at", "2018-12-18 22:01:00.913143"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.919121"], ["updated_at", "2018-12-18 22:01:00.919121"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.920763"], ["updated_at", "2018-12-18 22:01:00.920763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.4ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.925883"], ["updated_at", "2018-12-18 22:01:00.925883"]]  (0.0ms) commit transaction  (0.4ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.927726"], ["updated_at", "2018-12-18 22:01:00.927726"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.932777"], ["updated_at", "2018-12-18 22:01:00.932777"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.935201"], ["updated_at", "2018-12-18 22:01:00.935201"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.936925"], ["updated_at", "2018-12-18 22:01:00.936925"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.942746"], ["updated_at", "2018-12-18 22:01:00.942746"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.959949"], ["updated_at", "2018-12-18 22:01:00.959949"]]  (0.0ms) commit transaction  (0.4ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.974505"], ["updated_at", "2018-12-18 22:01:00.974505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.3ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.985656"], ["updated_at", "2018-12-18 22:01:00.985656"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.987422"], ["updated_at", "2018-12-18 22:01:00.987422"]]  (0.1ms) commit transaction  (0.3ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.992347"], ["updated_at", "2018-12-18 22:01:00.992347"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:00.998947"], ["updated_at", "2018-12-18 22:01:00.998947"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.010579"], ["updated_at", "2018-12-18 22:01:01.010579"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.013630"], ["updated_at", "2018-12-18 22:01:01.013630"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.016646"], ["updated_at", "2018-12-18 22:01:01.016646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-12-18 22:01:01.022526"], ["updated_at", "2018-12-18 22:01:01.022526"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-12-18 22:01:01.025497"], ["updated_at", "2018-12-18 22:01:01.025497"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.038961"], ["updated_at", "2018-12-18 22:01:01.038961"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-18 22:01:01.046413"], ["updated_at", "2018-12-18 22:01:01.046413"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-18 22:01:01.047740"], ["updated_at", "2018-12-18 22:01:01.047740"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-18 22:01:01.050329"], ["updated_at", "2018-12-18 22:01:01.050329"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-18 22:01:01.051559"], ["updated_at", "2018-12-18 22:01:01.051559"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.061757"], ["updated_at", "2018-12-18 22:01:01.061757"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.063635"], ["updated_at", "2018-12-18 22:01:01.063635"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.074788"], ["updated_at", "2018-12-18 22:01:01.074788"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.080646"], ["updated_at", "2018-12-18 22:01:01.080646"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-12-18 22:01:01.081983"], ["updated_at", "2018-12-18 22:01:01.081983"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.085940"], ["updated_at", "2018-12-18 22:01:01.085940"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.088998"], ["updated_at", "2018-12-18 22:01:01.088998"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-12-18 22:01:01.095885"], ["updated_at", "2018-12-18 22:01:01.095885"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.098747"], ["updated_at", "2018-12-18 22:01:01.098747"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.2ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.105364"], ["updated_at", "2018-12-18 22:01:01.105364"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.106982"], ["updated_at", "2018-12-18 22:01:01.106982"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.111373"], ["updated_at", "2018-12-18 22:01:01.111373"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.113124"], ["updated_at", "2018-12-18 22:01:01.113124"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.126280"], ["updated_at", "2018-12-18 22:01:01.126280"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.135488"], ["updated_at", "2018-12-18 22:01:01.135488"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.136897"], ["updated_at", "2018-12-18 22:01:01.136897"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.143848"], ["updated_at", "2018-12-18 22:01:01.143848"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.145014"], ["updated_at", "2018-12-18 22:01:01.145014"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-18 22:01:01.164240"], ["updated_at", "2018-12-18 22:01:01.164240"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.171276"], ["updated_at", "2018-12-18 22:01:01.171276"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.172475"], ["updated_at", "2018-12-18 22:01:01.172475"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.181336"], ["updated_at", "2018-12-18 22:01:01.181336"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.182601"], ["updated_at", "2018-12-18 22:01:01.182601"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.191309"], ["updated_at", "2018-12-18 22:01:01.191309"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.193963"], ["updated_at", "2018-12-18 22:01:01.193963"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.198681"], ["updated_at", "2018-12-18 22:01:01.198681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.199843"], ["updated_at", "2018-12-18 22:01:01.199843"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.202626"], ["updated_at", "2018-12-18 22:01:01.202626"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.208539"], ["updated_at", "2018-12-18 22:01:01.208539"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.209873"], ["updated_at", "2018-12-18 22:01:01.209873"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-12-18 22:01:01.215876"], ["updated_at", "2018-12-18 22:01:01.215876"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-12-18 22:01:01.217665"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-18 22:01:01.219849"], ["updated_at", "2018-12-18 22:01:01.219849"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-12-18 22:01:01.221029"], ["updated_at", "2018-12-18 22:01:01.221029"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Country Destroy (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.230631"], ["updated_at", "2018-12-18 22:01:01.230631"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.232019"], ["updated_at", "2018-12-18 22:01:01.232019"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.235396"], ["updated_at", "2018-12-18 22:01:01.235396"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" ------------------------------------------------------- StrongResourcesControllerTest: test_new_strong_resource ------------------------------------------------------- Processing by StrongResourcesController#new as HTML Parameters: {"strong_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------- StrongResourcesControllerTest: test_still_authorized_with_strong_params ----------------------------------------------------------------------- Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by StrongResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ AccessOverwritesControllerTest: test_filter_access_overwrite ------------------------------------------------------------ Processing by AccessOverwritesController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AccessOverwritesController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2).  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-12-18 22:01:01.382565"], ["updated_at", "2018-12-18 22:01:01.382565"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-12-18 22:01:01.383862"], ["updated_at", "2018-12-18 22:01:01.383862"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.1ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 5], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.2ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 5], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 5]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.429926"], ["updated_at", "2018-12-18 22:01:01.429926"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.437771"], ["updated_at", "2018-12-18 22:01:01.437771"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.441705"], ["updated_at", "2018-12-18 22:01:01.441705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-18 22:01:01.456762"], ["updated_at", "2018-12-18 22:01:01.456762"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-12-18 22:01:01.465844"], ["updated_at", "2018-12-18 22:01:01.465844"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction ------------------------------------------------------------------------------------ CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_new ------------------------------------------------------------------------------------ Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_search --------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------------------- CustomMembersCollectionsResourceControllerTest: test_custom_members_filter_other_show ------------------------------------------------------------------------------------- Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by CustomMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :context_1). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :context_1). ---------------------------------------------------- HierachicalControllerTest: test_controller_hierarchy ---------------------------------------------------- Processing by CommonChild2Controller#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by CommonChild2Controller#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load ------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#edit as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_object_load_without_param ---------------------------------------------------------------------- Processing by LoadMockObjectsController#show as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------- LoadObjectControllerTest: test_filter_access_with_object_load_custom -------------------------------------------------------------------- Processing by LoadMockObjectsController#delete as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#view as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#update as HTML Rendering text template Rendered text template (0.1ms) Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) --------------------------------------------------- LoadObjectControllerTest: test_filter_access_custom --------------------------------------------------- Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by LoadMockObjectsController#create as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_additional_member_action_with_id ----------------------------------------------------------------------------------------- Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#additional_member_action as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------ ShallowNestedResourcesControllerTest: test_nested_filter_new_with_params ------------------------------------------------------------------------ Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"2", "shallow_nested_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#new as HTML Parameters: {"parent_mock_id"=>"1", "shallow_nested_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_show_with_id --------------------------------------------------------------------- Processing by ShallowNestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- ShallowNestedResourcesControllerTest: test_nested_filter_index -------------------------------------------------------------- Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ShallowNestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------------------------ AllActionsControllerTest: test_filter_access_all ------------------------------------------------ Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by AllMocksController#view as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by AllMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_new_with_params --------------------------------------------------------------- Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------------ BasicResourcesControllerTest: test_basic_filter_show_with_id ------------------------------------------------------------ Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicResourcesControllerTest: test_basic_filter_index ----------------------------------------------------- Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by BasicResourcesController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_new_with_params ----------------------------------------------------------------- Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"2"}, "parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#new as HTML Parameters: {"nested_resource"=>{"id"=>"1"}, "parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_show_with_id -------------------------------------------------------------- Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"2", "id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#show as HTML Parameters: {"parent_mock_id"=>"1", "id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------- NestedResourcesControllerTest: test_nested_filter_index ------------------------------------------------------- Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NestedResourcesController#index as HTML Parameters: {"parent_mock_id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------- BasicControllerTest: test_filter_access_skip_attribute_test ----------------------------------------------------------- Processing by SpecificMocksController#new as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------------------- BasicControllerTest: test_filter_access_multi_actions ----------------------------------------------------- Processing by SpecificMocksController#create as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_filter_access_priv_hierarchy ------------------------------------------------------ Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ---------------------------------------------------------------------- BasicControllerTest: test_filter_access_to_receiving_an_explicit_array ---------------------------------------------------------------------- Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_1 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#action_group_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------------------------------------ BasicControllerTest: test_permitted_to_without_context ------------------------------------------------------ ----------------------------------------------------------- BasicControllerTest: test_filter_access_unprotected_actions ----------------------------------------------------------- Processing by SpecificMocksController#unprotected_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------- BasicControllerTest: test_filter_access --------------------------------------- Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action_2 as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#test_action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by SpecificMocksController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- BasicControllerTest: test_existing_instance_var_remains_unchanged ----------------------------------------------------------------- Processing by SpecificMocksController#edit_2 as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/edit_2 for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/edit_2"], context :context_1). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/unprotected_action for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/unprotected_action"], context :context_1). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/create for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/create"], context :context_1). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_search_index ----------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#search as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_new -------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) --------------------------------------------------------------------------------------------- AdditionalMembersCollectionsResourceControllerTest: test_additional_members_filter_other_show --------------------------------------------------------------------------------------------- Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#other_show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by AdditionalMembersCollectionsResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__does_not_have_access -----------------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.1ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"2"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] User Exists (0.1ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 1], ["id", 2], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms) --------------------------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_show__access_allowed__users_role__read_permissions__with_user ---------------------------------------------------------------------------------------------------  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"3"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.2ms) ------------------------------------------------------------------------------- FilterAccessToWithIdInScopeTest: test_id_in_scope__filter_access_to__has_access -------------------------------------------------------------------------------  (0.1ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES  (0.0ms) commit transaction Processing by UsersController#show as HTML Parameters: {"id"=>"4"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] User Exists (0.2ms) SELECT 1 AS one FROM "users" WHERE "users"."id" = ? AND "users"."id" = ? LIMIT ? [["id", 4], ["id", 4], ["LIMIT", 1]] Rendering text template Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.3ms) ----------------------------------- HelperTest: test_permit_with_object ----------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ----------------------------------------- HelperTest: test_has_role_with_guest_user ----------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------- HelperTest: test_has_any_role ----------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------- HelperTest: test_permit_with_object_and_context ----------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------- HelperTest: test_permit ----------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------- HelperTest: test_has_any_role_with_hierarchy -------------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ------------------------- HelperTest: test_has_role ------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ---------------------------------------- HelperTest: test_has_role_with_hierarchy ---------------------------------------- Processing by HelperMocksController#action as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) ------------------------------------------ DeepNameSpacedControllerTest: test_context ------------------------------------------ Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Processing by Deep::NameSpaced::ThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /all_mocks/show"], context :context_1). -------------------------------------- NameSpacedControllerTest: test_context -------------------------------------- Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#show as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by Name::SpacedThingsController#update as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ------------------------------------------- NoFilterAccessToTest: test_filter_access_to ------------------------------------------- Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"100"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by NoFilterAccessObjectsController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) ---------------------------------------------- NoFilterAccessToTest: test_no_filter_access_to ---------------------------------------------- Processing by NoFilterAccessObjectsController#index as HTML Parameters: {"id"=>"1", "special_attribute"=>"wrong"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------- PluralizationControllerTest: test_filter_access_people_controller ----------------------------------------------------------------- Processing by PeopleController#show as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) ------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_index ------------------------------------------------------------------------- Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#index as HTML Rendering text template Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) ----------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_new_with_params ----------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"2"}} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#new as HTML Parameters: {"basic_resource"=>{"id"=>"1"}} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) -------------------------------------------------------------------------------- ExplicitContextResourceControllerTest: test_explicit_context_filter_show_with_id -------------------------------------------------------------------------------- Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"2"} Rendering text template Rendered text template (0.0ms) Filter chain halted as :filter_access_filter rendered or redirected Completed 403 Forbidden in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Processing by ExplicitContextResourceController#show as HTML Parameters: {"id"=>"1"} Rendering text template Rendered text template (0.0ms) Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) --------------------------------------- ParamsBlockArityTest: test_params_arity --------------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :context_1). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /all_mocks/show"], context :context_1). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :context_1). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :context_1). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/create for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/create"], context :context_1). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/edit_2 for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/edit_2"], context :context_1). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/unprotected_action for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/unprotected_action"], context :context_1). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :context_1). ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/create for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/create"], context :context_1). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/edit_2 for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/edit_2"], context :context_1). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/unprotected_action for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/unprotected_action"], context :context_1). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :context_1). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :context_1). ------------------------------- NameSpacedAPITest: test_context ------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :context_1). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /all_mocks/show"], context :context_1). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /all_mocks/show"], context :context_1). ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :context_1). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :context_1). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- Permission denied: No matching rules found for GET /people/show for User with id (roles {:test_role=>true}, privileges [:"GET /people/show"], context :context_1). ------------------------------- NameSpacedAPITest: test_context ------------------------------- ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /all_mocks/show"], context :context_1). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/edit_2 for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/edit_2"], context :context_1). ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/unprotected_action for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/unprotected_action"], context :context_1). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/create for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/create"], context :context_1). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). ------------------------------- NameSpacedAPITest: test_context ------------------------------- Permission denied: No matching rules found for GET /name/spaced_things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/show"], context :name_spaced_things). Permission denied: No matching rules found for GET /name/spaced_things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /name/spaced_things/update"], context :spaced_things). --------------------------------------------------- PeopleAPITest: test_filter_access_people_controller --------------------------------------------------- ----------------------------------- DeepNameSpacedAPITest: test_context ----------------------------------- Permission denied: No matching rules found for GET /deep/name_spaced/things/show for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/show"], context :deep_name_spaced_things). Permission denied: No matching rules found for GET /deep/name_spaced/things/update for User with id (roles {:prohibited_role=>true}, privileges [:"GET /deep/name_spaced/things/update"], context :things). ----------------------------------------- AllActionsAPITest: test_filter_access_all ----------------------------------------- Permission denied: No matching rules found for GET /all_mocks/show for User with id (roles {:test_role_2=>true}, privileges [:"GET /all_mocks/show"], context :all_mocks). --------------------------------------------- HierachicalAPITest: test_controller_hierarchy --------------------------------------------- Permission denied: No matching rules found for GET /common_child2/show for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/show"], context :common_child2). Permission denied: No matching rules found for GET /common_child2/delete for User with id (roles {:test_role=>true}, privileges [:"GET /common_child2/delete"], context :common_child2). ---------------------------------------------- BasicAPITest: test_filter_access_multi_actions ---------------------------------------------- ---------------------------------------------------------- BasicAPITest: test_existing_instance_var_remains_unchanged ---------------------------------------------------------- -------------------------------- BasicAPITest: test_filter_access -------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). Permission denied: No matching rules found for test for User with id (roles {:test_role_2=>true}, privileges [:test], context :permissions). ----------------------------------------------- BasicAPITest: test_filter_access_priv_hierarchy ----------------------------------------------- ---------------------------------------------------- BasicAPITest: test_filter_access_unprotected_actions ---------------------------------------------------- --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks). ---------------------------------------------------- BasicAPITest: test_filter_access_skip_attribute_test ---------------------------------------------------- ----------------------------------------------- BasicAPITest: test_permitted_to_without_context ----------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/show for User with id (roles {:test_role=>true}, privileges [:"GET /specific_mocks/show"], context :specific_mocks). ------------------------------------------------------ LoadObjectAPITest: test_filter_access_with_object_load ------------------------------------------------------ Permission denied: GET /load_mock_objects/:id not allowed for User with id on #. -------------------------------------------- LoadObjectAPITest: test_filter_access_custom -------------------------------------------- Permission denied: No matching rules found for GET /load_mock_objects/:id/edit for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/:id/edit"], context :load_mock_objects). ------------------------------------------------------------- LoadObjectAPITest: test_filter_access_with_object_load_custom ------------------------------------------------------------- Permission denied: DELETE /load_mock_objects/:id not allowed for User with id on #. Permission denied: No matching rules found for GET /load_mock_objects/view for User with id (roles {:test_role_2=>true}, privileges [:"GET /load_mock_objects/view"], context :load_mock_objects). ----------------------------------------------------- AccessOverwritesAPITest: test_filter_access_overwrite ----------------------------------------------------- Permission denied: No matching rules found for test for User with id (roles {:test_role=>true}, privileges [:test], context :permissions_2). --------------------------------------------------------------- BasicAPITest: test_filter_access_to_receiving_an_explicit_array --------------------------------------------------------------- Permission denied: No matching rules found for GET /specific_mocks/action_group_action_1 for User with id (roles {:test_action_group_2=>true}, privileges [:"GET /specific_mocks/action_group_action_1"], context :specific_mocks). Permission denied: No matching rules found for GET /specific_mocks/action_group_action_2 for User with id (roles {:guest=>true}, privileges [:"GET /specific_mocks/action_group_action_2"], context :specific_mocks).  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction TestModelSecurityModel Create (0.2ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:44.862384"], ["updated_at", "2018-12-19 00:55:44.862384"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:44.915199"], ["updated_at", "2018-12-19 00:55:44.915199"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:44.919126"], ["updated_at", "2018-12-19 00:55:44.919126"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 4], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 4], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 4]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-12-19 00:55:44.935216"], ["updated_at", "2018-12-19 00:55:44.935216"]]  (0.1ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-12-19 00:55:44.952644"], ["updated_at", "2018-12-19 00:55:44.952644"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-12-19 00:55:44.953745"], ["updated_at", "2018-12-19 00:55:44.953745"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 8], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.3ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 9], ["id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 9]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 9], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" Branch Destroy (0.1ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.005747"], ["updated_at", "2018-12-19 00:55:45.005747"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.014160"], ["updated_at", "2018-12-19 00:55:45.014160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.015301"], ["updated_at", "2018-12-19 00:55:45.015301"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.019254"], ["updated_at", "2018-12-19 00:55:45.019254"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.024949"], ["updated_at", "2018-12-19 00:55:45.024949"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.032166"], ["updated_at", "2018-12-19 00:55:45.032166"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.033523"], ["updated_at", "2018-12-19 00:55:45.033523"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.034545"], ["updated_at", "2018-12-19 00:55:45.034545"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.037797"], ["updated_at", "2018-12-19 00:55:45.037797"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.041002"], ["updated_at", "2018-12-19 00:55:45.041002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.045613"], ["updated_at", "2018-12-19 00:55:45.045613"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-19 00:55:45.054765"], ["updated_at", "2018-12-19 00:55:45.054765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-19 00:55:45.056026"], ["updated_at", "2018-12-19 00:55:45.056026"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-19 00:55:45.058621"], ["updated_at", "2018-12-19 00:55:45.058621"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-19 00:55:45.060667"], ["updated_at", "2018-12-19 00:55:45.060667"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-19 00:55:45.067031"], ["updated_at", "2018-12-19 00:55:45.067031"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-19 00:55:45.068196"], ["updated_at", "2018-12-19 00:55:45.068196"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-19 00:55:45.070372"], ["updated_at", "2018-12-19 00:55:45.070372"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-19 00:55:45.071472"], ["updated_at", "2018-12-19 00:55:45.071472"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.2ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.080874"], ["updated_at", "2018-12-19 00:55:45.080874"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.082003"], ["updated_at", "2018-12-19 00:55:45.082003"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.095596"], ["updated_at", "2018-12-19 00:55:45.095596"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.096631"], ["updated_at", "2018-12-19 00:55:45.096631"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.2ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.109526"], ["updated_at", "2018-12-19 00:55:45.109526"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.115468"], ["updated_at", "2018-12-19 00:55:45.115468"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.118919"], ["updated_at", "2018-12-19 00:55:45.118919"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.130663"], ["updated_at", "2018-12-19 00:55:45.130663"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.137247"], ["updated_at", "2018-12-19 00:55:45.137247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.146062"], ["updated_at", "2018-12-19 00:55:45.146062"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-19 00:55:45.152585"], ["updated_at", "2018-12-19 00:55:45.152585"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-19 00:55:45.154383"], ["updated_at", "2018-12-19 00:55:45.154383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.155706"], ["updated_at", "2018-12-19 00:55:45.155706"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.3ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.163283"], ["updated_at", "2018-12-19 00:55:45.163283"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.164380"], ["updated_at", "2018-12-19 00:55:45.164380"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.166983"], ["updated_at", "2018-12-19 00:55:45.166983"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-12-19 00:55:45.173303"], ["updated_at", "2018-12-19 00:55:45.173303"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.175664"], ["updated_at", "2018-12-19 00:55:45.175664"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.187816"], ["updated_at", "2018-12-19 00:55:45.187816"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.190341"], ["updated_at", "2018-12-19 00:55:45.190341"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.2ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.1ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.211915"], ["updated_at", "2018-12-19 00:55:45.211915"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.213101"], ["updated_at", "2018-12-19 00:55:45.213101"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.214169"], ["updated_at", "2018-12-19 00:55:45.214169"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.218275"], ["updated_at", "2018-12-19 00:55:45.218275"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.222592"], ["updated_at", "2018-12-19 00:55:45.222592"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.223875"], ["updated_at", "2018-12-19 00:55:45.223875"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.234801"], ["updated_at", "2018-12-19 00:55:45.234801"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.235819"], ["updated_at", "2018-12-19 00:55:45.235819"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.238469"], ["updated_at", "2018-12-19 00:55:45.238469"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.243308"], ["updated_at", "2018-12-19 00:55:45.243308"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.244463"], ["updated_at", "2018-12-19 00:55:45.244463"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.251430"], ["updated_at", "2018-12-19 00:55:45.251430"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.252791"], ["updated_at", "2018-12-19 00:55:45.252791"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.256865"], ["updated_at", "2018-12-19 00:55:45.256865"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-12-19 00:55:45.258388"], ["updated_at", "2018-12-19 00:55:45.258388"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.262986"], ["updated_at", "2018-12-19 00:55:45.262986"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.265606"], ["updated_at", "2018-12-19 00:55:45.265606"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.267904"], ["updated_at", "2018-12-19 00:55:45.267904"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-12-19 00:55:45.276370"], ["updated_at", "2018-12-19 00:55:45.276370"]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.291405"], ["updated_at", "2018-12-19 00:55:45.291405"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.298399"], ["updated_at", "2018-12-19 00:55:45.298399"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.299801"], ["updated_at", "2018-12-19 00:55:45.299801"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.302764"], ["updated_at", "2018-12-19 00:55:45.302764"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.303840"], ["updated_at", "2018-12-19 00:55:45.303840"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.310105"], ["updated_at", "2018-12-19 00:55:45.310105"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.311488"], ["updated_at", "2018-12-19 00:55:45.311488"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.315839"], ["updated_at", "2018-12-19 00:55:45.315839"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.316911"], ["updated_at", "2018-12-19 00:55:45.316911"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.319957"], ["updated_at", "2018-12-19 00:55:45.319957"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-19 00:55:45.329098"], ["updated_at", "2018-12-19 00:55:45.329098"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.334761"], ["updated_at", "2018-12-19 00:55:45.334761"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.335954"], ["updated_at", "2018-12-19 00:55:45.335954"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.346511"], ["updated_at", "2018-12-19 00:55:45.346511"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.347662"], ["updated_at", "2018-12-19 00:55:45.347662"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:45.350364"], ["updated_at", "2018-12-19 00:55:45.350364"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-12-19 00:55:45.356704"], ["updated_at", "2018-12-19 00:55:45.356704"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Update (0.2ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-12-19 00:55:45.358430"], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-19 00:55:45.360562"], ["updated_at", "2018-12-19 00:55:45.360562"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-12-19 00:55:45.361763"], ["updated_at", "2018-12-19 00:55:45.361763"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Country Destroy (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-12-19 00:55:45.366790"], ["updated_at", "2018-12-19 00:55:45.366790"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-12-19 00:55:45.369594"], ["updated_at", "2018-12-19 00:55:45.369594"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.3ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModelWithFind Create (0.2ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.2ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-12-19 00:55:51.591657"], ["updated_at", "2018-12-19 00:55:51.591657"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-12-19 00:55:51.593038"], ["updated_at", "2018-12-19 00:55:51.593038"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.1ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 6], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 6]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 6], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" Branch Destroy (0.1ms) DELETE FROM "branches"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 1], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 1], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.666424"], ["updated_at", "2018-12-19 00:55:51.666424"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.672871"], ["updated_at", "2018-12-19 00:55:51.672871"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.676705"], ["updated_at", "2018-12-19 00:55:51.676705"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 1]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.687002"], ["updated_at", "2018-12-19 00:55:51.687002"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-12-19 00:55:51.692746"], ["updated_at", "2018-12-19 00:55:51.692746"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.705802"], ["updated_at", "2018-12-19 00:55:51.705802"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.706826"], ["updated_at", "2018-12-19 00:55:51.706826"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.0ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-19 00:55:51.725700"], ["updated_at", "2018-12-19 00:55:51.725700"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-19 00:55:51.726797"], ["updated_at", "2018-12-19 00:55:51.726797"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-19 00:55:51.729577"], ["updated_at", "2018-12-19 00:55:51.729577"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-19 00:55:51.730935"], ["updated_at", "2018-12-19 00:55:51.730935"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-19 00:55:51.735306"], ["updated_at", "2018-12-19 00:55:51.735306"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-19 00:55:51.736398"], ["updated_at", "2018-12-19 00:55:51.736398"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-19 00:55:51.738866"], ["updated_at", "2018-12-19 00:55:51.738866"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-19 00:55:51.740442"], ["updated_at", "2018-12-19 00:55:51.740442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.748987"], ["updated_at", "2018-12-19 00:55:51.748987"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.749976"], ["updated_at", "2018-12-19 00:55:51.749976"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.3ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.763561"], ["updated_at", "2018-12-19 00:55:51.763561"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.764625"], ["updated_at", "2018-12-19 00:55:51.764625"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.767712"], ["updated_at", "2018-12-19 00:55:51.767712"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.768680"], ["updated_at", "2018-12-19 00:55:51.768680"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-12-19 00:55:51.771125"], ["updated_at", "2018-12-19 00:55:51.771125"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-12-19 00:55:51.773955"], ["updated_at", "2018-12-19 00:55:51.773955"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.2ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.1ms) commit transaction Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.2ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-19 00:55:51.802622"], ["updated_at", "2018-12-19 00:55:51.802622"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-19 00:55:51.803707"], ["updated_at", "2018-12-19 00:55:51.803707"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.804595"], ["updated_at", "2018-12-19 00:55:51.804595"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.807224"], ["updated_at", "2018-12-19 00:55:51.807224"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-12-19 00:55:51.817314"], ["updated_at", "2018-12-19 00:55:51.817314"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.820547"], ["updated_at", "2018-12-19 00:55:51.820547"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-19 00:55:51.830154"], ["updated_at", "2018-12-19 00:55:51.830154"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.836049"], ["updated_at", "2018-12-19 00:55:51.836049"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.838681"], ["updated_at", "2018-12-19 00:55:51.838681"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-12-19 00:55:51.846619"], ["updated_at", "2018-12-19 00:55:51.846619"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 1], ["updated_at", "2018-12-19 00:55:51.848362"], ["id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-19 00:55:51.849611"], ["updated_at", "2018-12-19 00:55:51.849611"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-12-19 00:55:51.850591"], ["updated_at", "2018-12-19 00:55:51.850591"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Country Destroy (0.1ms) DELETE FROM "countries"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.855229"], ["updated_at", "2018-12-19 00:55:51.855229"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.857738"], ["updated_at", "2018-12-19 00:55:51.857738"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.863304"], ["updated_at", "2018-12-19 00:55:51.863304"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.864525"], ["updated_at", "2018-12-19 00:55:51.864525"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.866957"], ["updated_at", "2018-12-19 00:55:51.866957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.871237"], ["updated_at", "2018-12-19 00:55:51.871237"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.872318"], ["updated_at", "2018-12-19 00:55:51.872318"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.873597"], ["updated_at", "2018-12-19 00:55:51.873597"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.876922"], ["updated_at", "2018-12-19 00:55:51.876922"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.0ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.884402"], ["updated_at", "2018-12-19 00:55:51.884402"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.890264"], ["updated_at", "2018-12-19 00:55:51.890264"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.2ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.894513"], ["updated_at", "2018-12-19 00:55:51.894513"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.895521"], ["updated_at", "2018-12-19 00:55:51.895521"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.898493"], ["updated_at", "2018-12-19 00:55:51.898493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.899838"], ["updated_at", "2018-12-19 00:55:51.899838"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.903890"], ["updated_at", "2018-12-19 00:55:51.903890"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.904891"], ["updated_at", "2018-12-19 00:55:51.904891"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.911852"], ["updated_at", "2018-12-19 00:55:51.911852"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.913045"], ["updated_at", "2018-12-19 00:55:51.913045"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.915327"], ["updated_at", "2018-12-19 00:55:51.915327"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.919220"], ["updated_at", "2018-12-19 00:55:51.919220"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.920383"], ["updated_at", "2018-12-19 00:55:51.920383"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.924656"], ["updated_at", "2018-12-19 00:55:51.924656"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.930895"], ["updated_at", "2018-12-19 00:55:51.930895"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.938957"], ["updated_at", "2018-12-19 00:55:51.938957"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-12-19 00:55:51.940403"], ["updated_at", "2018-12-19 00:55:51.940403"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.945437"], ["updated_at", "2018-12-19 00:55:51.945437"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.951872"], ["updated_at", "2018-12-19 00:55:51.951872"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.954178"], ["updated_at", "2018-12-19 00:55:51.954178"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.958347"], ["updated_at", "2018-12-19 00:55:51.958347"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.960247"], ["updated_at", "2018-12-19 00:55:51.960247"]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.963954"], ["updated_at", "2018-12-19 00:55:51.963954"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.966463"], ["updated_at", "2018-12-19 00:55:51.966463"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.972406"], ["updated_at", "2018-12-19 00:55:51.972406"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.973543"], ["updated_at", "2018-12-19 00:55:51.973543"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 1)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany')  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-12-19 00:55:51.985442"], ["updated_at", "2018-12-19 00:55:51.985442"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.998160"], ["updated_at", "2018-12-19 00:55:51.998160"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:51.999552"], ["updated_at", "2018-12-19 00:55:51.999552"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.1ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.013273"], ["updated_at", "2018-12-19 00:55:52.013273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.014519"], ["updated_at", "2018-12-19 00:55:52.014519"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.015581"], ["updated_at", "2018-12-19 00:55:52.015581"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.019560"], ["updated_at", "2018-12-19 00:55:52.019560"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.025444"], ["updated_at", "2018-12-19 00:55:52.025444"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.026461"], ["updated_at", "2018-12-19 00:55:52.026461"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.032718"], ["updated_at", "2018-12-19 00:55:52.032718"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.039165"], ["updated_at", "2018-12-19 00:55:52.039165"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.042414"], ["updated_at", "2018-12-19 00:55:52.042414"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:55:52.044695"], ["updated_at", "2018-12-19 00:55:52.044695"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.4ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.2ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.0ms) begin transaction TestModel Create (0.3ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.066765"], ["updated_at", "2018-12-19 00:56:41.066765"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.081205"], ["updated_at", "2018-12-19 00:56:41.081205"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.112716"], ["updated_at", "2018-12-19 00:56:41.112716"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.2ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id") VALUES (?) [["company_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "attr") VALUES (?, ?) [["branch_id", 3], ["attr", 3]]  (0.0ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 1)) Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "branches" ON "branches"."company_id" = "companies"."id" INNER JOIN "test_attrs" ON "test_attrs"."branch_id" = "branches"."id" WHERE (("test_attrs"."attr" = 4)) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.160677"], ["updated_at", "2018-12-19 00:56:41.160677"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 2)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction NWayJoinItem Create (0.1ms) INSERT INTO "n_way_join_items" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-19 00:56:41.176053"], ["updated_at", "2018-12-19 00:56:41.176053"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_attr_through_id", "n_way_join_item_id") VALUES (?, ?) [["test_attr_through_id", 1], ["n_way_join_item_id", 1]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_attr_through_id" = "test_models"."test_attr_through_id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."id" = "test_attrs"."n_way_join_item_id" WHERE (("test_attr_throughs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.181319"], ["updated_at", "2018-12-19 00:56:41.181319"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.182294"], ["updated_at", "2018-12-19 00:56:41.182294"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR (1=1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.184636"], ["updated_at", "2018-12-19 00:56:41.184636"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 111]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 111)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."attr" = 333)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "pickle"], ["created_at", "2018-12-19 00:56:41.190084"], ["updated_at", "2018-12-19 00:56:41.190084"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.193756"], ["updated_at", "2018-12-19 00:56:41.193756"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'pickle') OR ("test_models"."content" = 'hotdog')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.199881"], ["updated_at", "2018-12-19 00:56:41.199881"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.200855"], ["updated_at", "2018-12-19 00:56:41.200855"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.201726"], ["updated_at", "2018-12-19 00:56:41.201726"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" >= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-19 00:56:41.205136"], ["updated_at", "2018-12-19 00:56:41.205136"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-19 00:56:41.206247"], ["updated_at", "2018-12-19 00:56:41.206247"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-19 00:56:41.208926"], ["updated_at", "2018-12-19 00:56:41.208926"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-19 00:56:41.210002"], ["updated_at", "2018-12-19 00:56:41.210002"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 3], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_models_test_attrs"."id" AS t2_r0, "test_models_test_attrs"."test_attr_through_id" AS t2_r1, "test_models_test_attrs"."content" AS t2_r2, "test_models_test_attrs"."country_id" AS t2_r3, "test_models_test_attrs"."created_at" AS t2_r4, "test_models_test_attrs"."updated_at" AS t2_r5, "test_attrs_test_models"."id" AS t3_r0, "test_attrs_test_models"."test_model_id" AS t3_r1, "test_attrs_test_models"."test_another_model_id" AS t3_r2, "test_attrs_test_models"."test_a_third_model_id" AS t3_r3, "test_attrs_test_models"."branch_id" AS t3_r4, "test_attrs_test_models"."company_id" AS t3_r5, "test_attrs_test_models"."test_attr_through_id" AS t3_r6, "test_attrs_test_models"."n_way_join_item_id" AS t3_r7, "test_attrs_test_models"."test_model_security_model_id" AS t3_r8, "test_attrs_test_models"."attr" AS t3_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models_test_attrs"."id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1') OR ("test_models"."content" = 'test_2_2' AND "test_attrs_test_models"."id" = 3)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.219131"], ["updated_at", "2018-12-19 00:56:41.219131"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.220233"], ["updated_at", "2018-12-19 00:56:41.220233"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (1,5)))  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" IN (6))) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.230768"], ["updated_at", "2018-12-19 00:56:41.230768"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? AND (("test_attrs"."id" = 1)) [["test_model_id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.237456"], ["updated_at", "2018-12-19 00:56:41.237456"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.238612"], ["updated_at", "2018-12-19 00:56:41.238612"]]  (0.0ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1) OR ("test_models"."id" = 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.241560"], ["updated_at", "2018-12-19 00:56:41.241560"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.242854"], ["updated_at", "2018-12-19 00:56:41.242854"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 1)) [["attr", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" DESC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" AND "test_attrs"."attr" = ? WHERE (("test_attrs"."id" = 2)) [["attr", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "first test"], ["created_at", "2018-12-19 00:56:41.254616"], ["updated_at", "2018-12-19 00:56:41.254616"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 2], ["created_at", "2018-12-19 00:56:41.258043"], ["updated_at", "2018-12-19 00:56:41.258043"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1)) TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.1ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'first test' AND "test_attrs"."attr" = 1) OR ("test_models"."country_id" = 2 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.267550"], ["updated_at", "2018-12-19 00:56:41.267550"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_another_model_id") VALUES (?) [["test_another_model_id", 1]]  (0.1ms) commit transaction TestAttr Load (0.4ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 1)) TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_attrs" "test_another_attrs_test_models" ON "test_another_attrs_test_models"."test_another_model_id" = "test_models"."id" WHERE (("test_another_attrs_test_models"."id" = 111)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.281032"], ["updated_at", "2018-12-19 00:56:41.281032"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.286350"], ["updated_at", "2018-12-19 00:56:41.286350"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "Content"], ["created_at", "2018-12-19 00:56:41.287350"], ["updated_at", "2018-12-19 00:56:41.287350"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."content" IS NOT NULL)) ORDER BY "test_models"."id" ASC LIMIT ? [["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.290828"], ["updated_at", "2018-12-19 00:56:41.290828"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.291865"], ["updated_at", "2018-12-19 00:56:41.291865"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.294944"], ["updated_at", "2018-12-19 00:56:41.294944"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "A Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 1], ["company_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("name") VALUES (?) [["name", "Different Branch"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id", "company_id") VALUES (?, ?) [["branch_id", 2], ["company_id", 2]]  (0.1ms) commit transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" INNER JOIN "test_attrs" ON "test_attrs"."company_id" = "companies"."id" INNER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" WHERE (("branches"."name" = 'A Branch')) Company Destroy (0.1ms) DELETE FROM "companies" Branch Destroy (0.1ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.312544"], ["updated_at", "2018-12-19 00:56:41.312544"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.313662"], ["updated_at", "2018-12-19 00:56:41.313662"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.316102"], ["updated_at", "2018-12-19 00:56:41.316102"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.317064"], ["updated_at", "2018-12-19 00:56:41.317064"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) AND "test_models"."id" = ? [["id", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.325503"], ["updated_at", "2018-12-19 00:56:41.325503"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.326815"], ["updated_at", "2018-12-19 00:56:41.326815"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.327852"], ["updated_at", "2018-12-19 00:56:41.327852"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" <= 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.331797"], ["updated_at", "2018-12-19 00:56:41.331797"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.332853"], ["updated_at", "2018-12-19 00:56:41.332853"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" < 2)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.336204"], ["updated_at", "2018-12-19 00:56:41.336204"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.338565"], ["updated_at", "2018-12-19 00:56:41.338565"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.341115"], ["updated_at", "2018-12-19 00:56:41.341115"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1 AND "test_attrs"."attr" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1) OR ("test_attrs"."test_another_model_id" = 1)) TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_1"], ["created_at", "2018-12-19 00:56:41.347099"], ["updated_at", "2018-12-19 00:56:41.347099"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1_2"], ["created_at", "2018-12-19 00:56:41.348140"], ["updated_at", "2018-12-19 00:56:41.348140"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_1"], ["created_at", "2018-12-19 00:56:41.350266"], ["updated_at", "2018-12-19 00:56:41.350266"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2_2"], ["created_at", "2018-12-19 00:56:41.351505"], ["updated_at", "2018-12-19 00:56:41.351505"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 3], ["test_another_model_id", 4]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_another_model_id" INNER JOIN "test_models" "test_models_test_attrs" ON "test_models_test_attrs"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."content" = 'test_1_2' AND "test_models_test_attrs"."content" = 'test_1_1')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" ("name") VALUES (?) [["name", "country_1"]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("country_id", "created_at", "updated_at") VALUES (?, ?, ?) [["country_id", 1], ["created_at", "2018-12-19 00:56:41.365840"], ["updated_at", "2018-12-19 00:56:41.365840"]]  (0.0ms) commit transaction  (0.1ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_1"]]  (0.1ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("company_id", "name") VALUES (?, ?) [["company_id", 1], ["name", "branch_1"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction Company Create (0.1ms) INSERT INTO "companies" ("country_id", "name") VALUES (?, ?) [["country_id", 1], ["name", "company_2"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("company_id") VALUES (?) [["company_id", 2]]  (0.1ms) commit transaction TestModel Load (0.2ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? ORDER BY "test_models"."id" ASC LIMIT ? [["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "branches"."id" AS t1_r0, "branches"."company_id" AS t1_r1, "branches"."test_model_id" AS t1_r2, "branches"."name" AS t1_r3, "companies"."id" AS t2_r0, "companies"."country_id" AS t2_r1, "companies"."type" AS t2_r2, "companies"."name" AS t2_r3, "countries"."id" AS t3_r0, "countries"."name" AS t3_r1, "test_models"."id" AS t4_r0, "test_models"."test_attr_through_id" AS t4_r1, "test_models"."content" AS t4_r2, "test_models"."country_id" AS t4_r3, "test_models"."created_at" AS t4_r4, "test_models"."updated_at" AS t4_r5, "companies_test_attrs"."id" AS t5_r0, "companies_test_attrs"."country_id" AS t5_r1, "companies_test_attrs"."type" AS t5_r2, "companies_test_attrs"."name" AS t5_r3, "countries_companies"."id" AS t6_r0, "countries_companies"."name" AS t6_r1, "test_models_countries"."id" AS t7_r0, "test_models_countries"."test_attr_through_id" AS t7_r1, "test_models_countries"."content" AS t7_r2, "test_models_countries"."country_id" AS t7_r3, "test_models_countries"."created_at" AS t7_r4, "test_models_countries"."updated_at" AS t7_r5 FROM "test_attrs" LEFT OUTER JOIN "branches" ON "branches"."id" = "test_attrs"."branch_id" LEFT OUTER JOIN "companies" ON "companies"."id" = "branches"."company_id" LEFT OUTER JOIN "countries" ON "countries"."id" = "companies"."country_id" LEFT OUTER JOIN "test_models" ON "test_models"."country_id" = "countries"."id" LEFT OUTER JOIN "companies" "companies_test_attrs" ON "companies_test_attrs"."id" = "test_attrs"."company_id" LEFT OUTER JOIN "countries" "countries_companies" ON "countries_companies"."id" = "companies_test_attrs"."country_id" LEFT OUTER JOIN "test_models" "test_models_countries" ON "test_models_countries"."country_id" = "countries_companies"."id" WHERE (("test_models"."id" = 1) OR ("test_models_countries"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.379325"], ["updated_at", "2018-12-19 00:56:41.379325"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.380383"], ["updated_at", "2018-12-19 00:56:41.380383"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "test_another_model_id") VALUES (?, ?) [["test_model_id", 1], ["test_another_model_id", 2]]  (0.0ms) commit transaction SQL (0.3ms) SELECT "test_attrs"."id" AS t0_r0, "test_attrs"."test_model_id" AS t0_r1, "test_attrs"."test_another_model_id" AS t0_r2, "test_attrs"."test_a_third_model_id" AS t0_r3, "test_attrs"."branch_id" AS t0_r4, "test_attrs"."company_id" AS t0_r5, "test_attrs"."test_attr_through_id" AS t0_r6, "test_attrs"."n_way_join_item_id" AS t0_r7, "test_attrs"."test_model_security_model_id" AS t0_r8, "test_attrs"."attr" AS t0_r9, "test_models"."id" AS t1_r0, "test_models"."test_attr_through_id" AS t1_r1, "test_models"."content" AS t1_r2, "test_models"."country_id" AS t1_r3, "test_models"."created_at" AS t1_r4, "test_models"."updated_at" AS t1_r5, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9, "test_another_models_test_attrs"."id" AS t3_r0, "test_another_models_test_attrs"."test_attr_through_id" AS t3_r1, "test_another_models_test_attrs"."content" AS t3_r2, "test_another_models_test_attrs"."country_id" AS t3_r3, "test_another_models_test_attrs"."created_at" AS t3_r4, "test_another_models_test_attrs"."updated_at" AS t3_r5, "test_attrs_test_models_2"."id" AS t4_r0, "test_attrs_test_models_2"."test_model_id" AS t4_r1, "test_attrs_test_models_2"."test_another_model_id" AS t4_r2, "test_attrs_test_models_2"."test_a_third_model_id" AS t4_r3, "test_attrs_test_models_2"."branch_id" AS t4_r4, "test_attrs_test_models_2"."company_id" AS t4_r5, "test_attrs_test_models_2"."test_attr_through_id" AS t4_r6, "test_attrs_test_models_2"."n_way_join_item_id" AS t4_r7, "test_attrs_test_models_2"."test_model_security_model_id" AS t4_r8, "test_attrs_test_models_2"."attr" AS t4_r9 FROM "test_attrs" LEFT OUTER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_models" "test_another_models_test_attrs" ON "test_another_models_test_attrs"."id" = "test_attrs"."test_another_model_id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models_2" ON "test_attrs_test_models_2"."test_model_id" = "test_another_models_test_attrs"."id" WHERE (("test_attrs_test_models"."id" = 1) OR ("test_attrs_test_models_2"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.391127"], ["updated_at", "2018-12-19 00:56:41.391127"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction SmallCompany Create (0.1ms) INSERT INTO "companies" ("type") VALUES (?) [["type", "SmallCompany"]]  (0.0ms) commit transaction SmallCompany Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."type" IN ('SmallCompany') AND (("companies"."id" = 3)) SmallCompany Destroy (0.1ms) DELETE FROM "companies" WHERE "companies"."type" IN ('SmallCompany') TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.402355"], ["updated_at", "2018-12-19 00:56:41.402355"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.409861"], ["updated_at", "2018-12-19 00:56:41.409861"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 3]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" INNER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" INNER JOIN "test_attrs" "test_attrs_test_attr_throughs" ON "test_attrs_test_attr_throughs"."id" = "test_attr_throughs"."test_attr_id" WHERE (("test_attrs_test_attr_throughs"."attr" = 4)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.420279"], ["updated_at", "2018-12-19 00:56:41.420279"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.421365"], ["updated_at", "2018-12-19 00:56:41.421365"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attrs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" <> 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.428374"], ["updated_at", "2018-12-19 00:56:41.428374"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE ((1=1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.431273"], ["updated_at", "2018-12-19 00:56:41.431273"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.432413"], ["updated_at", "2018-12-19 00:56:41.432413"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.435593"], ["updated_at", "2018-12-19 00:56:41.435593"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.437834"], ["updated_at", "2018-12-19 00:56:41.437834"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.441810"], ["updated_at", "2018-12-19 00:56:41.441810"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.444445"], ["updated_at", "2018-12-19 00:56:41.444445"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."test_model_id" = 1)) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.448205"], ["updated_at", "2018-12-19 00:56:41.448205"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.450493"], ["updated_at", "2018-12-19 00:56:41.450493"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" INNER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" WHERE (("test_attrs"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.455376"], ["updated_at", "2018-12-19 00:56:41.455376"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" INNER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attrs_test_models"."id" = 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction Country Create (0.1ms) INSERT INTO "countries" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 1], ["content", "Content"], ["created_at", "2018-12-19 00:56:41.461556"], ["updated_at", "2018-12-19 00:56:41.461556"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Update (0.1ms) UPDATE "test_models" SET "country_id" = ?, "updated_at" = ? WHERE "test_models"."id" = ? [["country_id", 2], ["updated_at", "2018-12-19 00:56:41.462928"], ["id", 1]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "created_at", "updated_at") VALUES (?, ?, ?) [["test_attr_through_id", 1], ["created_at", "2018-12-19 00:56:41.464652"], ["updated_at", "2018-12-19 00:56:41.464652"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("test_attr_through_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["test_attr_through_id", 2], ["content", "Content"], ["created_at", "2018-12-19 00:56:41.465667"], ["updated_at", "2018-12-19 00:56:41.465667"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (test_models.content IS NOT NULL) AND (("test_models"."test_attr_through_id" = 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE "test_models"."country_id" = ? AND (("test_models"."test_attr_through_id" = 1)) [["country_id", 2]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Country Destroy (0.1ms) DELETE FROM "countries"  (0.1ms) begin transaction TestModel Create (0.2ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.471792"], ["updated_at", "2018-12-19 00:56:41.471792"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.473705"], ["updated_at", "2018-12-19 00:56:41.473705"]]  (0.1ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" > 1)) TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.1ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-19 00:56:41.477314"], ["updated_at", "2018-12-19 00:56:41.477314"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "bla"], ["created_at", "2018-12-19 00:56:41.478331"], ["updated_at", "2018-12-19 00:56:41.478331"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.479265"], ["updated_at", "2018-12-19 00:56:41.479265"]]  (0.0ms) commit transaction TestModel Load (0.1ms) SELECT "test_models".* FROM "test_models" WHERE (("test_models"."id" = 1 AND "test_models"."content" = 'bla')) TestModel Destroy (0.0ms) DELETE FROM "test_models" TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.482117"], ["updated_at", "2018-12-19 00:56:41.482117"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.483047"], ["updated_at", "2018-12-19 00:56:41.483047"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.485329"], ["updated_at", "2018-12-19 00:56:41.485329"]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" INNER JOIN "test_models" ON "test_models"."id" = "test_attrs"."test_model_id" WHERE (("test_models"."id" NOT IN (1,2))) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.1ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_1"], ["created_at", "2018-12-19 00:56:41.498913"], ["updated_at", "2018-12-19 00:56:41.498913"]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "test_2"], ["created_at", "2018-12-19 00:56:41.499951"], ["updated_at", "2018-12-19 00:56:41.499951"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttrThrough Create (0.1ms) INSERT INTO "test_attr_throughs" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestAttrThrough Load (0.2ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestAttrThrough Load (0.0ms) SELECT "test_attr_throughs".* FROM "test_attr_throughs" INNER JOIN "test_attrs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" WHERE "test_attrs"."test_model_id" = ? ORDER BY "test_attr_throughs"."id" ASC LIMIT ? [["test_model_id", 2], ["LIMIT", 1]] SQL (0.4ms) SELECT "test_models"."id" AS t0_r0, "test_models"."test_attr_through_id" AS t0_r1, "test_models"."content" AS t0_r2, "test_models"."country_id" AS t0_r3, "test_models"."created_at" AS t0_r4, "test_models"."updated_at" AS t0_r5, "test_attr_throughs"."id" AS t1_r0, "test_attr_throughs"."test_attr_id" AS t1_r1, "test_attrs_test_models"."id" AS t2_r0, "test_attrs_test_models"."test_model_id" AS t2_r1, "test_attrs_test_models"."test_another_model_id" AS t2_r2, "test_attrs_test_models"."test_a_third_model_id" AS t2_r3, "test_attrs_test_models"."branch_id" AS t2_r4, "test_attrs_test_models"."company_id" AS t2_r5, "test_attrs_test_models"."test_attr_through_id" AS t2_r6, "test_attrs_test_models"."n_way_join_item_id" AS t2_r7, "test_attrs_test_models"."test_model_security_model_id" AS t2_r8, "test_attrs_test_models"."attr" AS t2_r9 FROM "test_models" LEFT OUTER JOIN "test_attrs" ON "test_attrs"."test_model_id" = "test_models"."id" LEFT OUTER JOIN "test_attr_throughs" ON "test_attr_throughs"."test_attr_id" = "test_attrs"."id" LEFT OUTER JOIN "test_attrs" "test_attrs_test_models" ON "test_attrs_test_models"."test_model_id" = "test_models"."id" WHERE (("test_attr_throughs"."id" = 1 AND "test_models"."content" = 'test_1') OR ("test_models"."id" = 2 AND "test_models"."content" = 'test_2')) TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs" TestAttrThrough Destroy (0.0ms) DELETE FROM "test_attr_throughs"  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "content"], ["created_at", "2018-12-19 00:56:41.514552"], ["updated_at", "2018-12-19 00:56:41.514552"]]  (0.0ms) commit transaction TestModel Destroy (0.1ms) DELETE FROM "test_models"  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 2], ["id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.1ms) begin transaction TestAttr Exists (0.1ms) SELECT 1 AS one FROM "test_attrs" WHERE "test_attrs"."test_model_security_model_id" = ? AND "test_attrs"."id" = ? LIMIT ? [["test_model_security_model_id", 2], ["id", 1], ["LIMIT", 1]] TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("test_attr_id") VALUES (?) [["test_attr_id", 2]]  (0.0ms) commit transaction TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."test_attr_id" = ? [["test_attr_id", 2]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr_2" = ? WHERE "test_model_security_models"."id" = ? [["attr_2", 2], ["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Destroy (0.1ms) DELETE FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? [["id", 3]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.1ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]]  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModelWithFind Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 3], ["LIMIT", 1]] TestModelSecurityModelWithFind Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]]  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.547569"], ["updated_at", "2018-12-19 00:56:41.547569"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? LIMIT ? [["test_model_id", 1], ["LIMIT", 1]] TestModel Destroy (0.1ms) DELETE FROM "test_models" TestAttr Destroy (0.0ms) DELETE FROM "test_attrs"  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("branch_id") VALUES (?) [["branch_id", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES TestAttr Update (0.1ms) UPDATE "test_attrs" SET "test_model_security_model_id" = ? WHERE "test_attrs"."id" = ? [["test_model_security_model_id", 7], ["id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModelSecurityModel Update (0.1ms) UPDATE "test_model_security_models" SET "attr" = ? WHERE "test_model_security_models"."id" = ? [["attr", 11], ["id", 7]]  (0.0ms) commit transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 7], ["LIMIT", 1]] TestAttr Destroy (0.1ms) DELETE FROM "test_attrs" TestModelSecurityModel Destroy (0.0ms) DELETE FROM "test_model_security_models" Branch Destroy (0.0ms) DELETE FROM "branches"  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModelSecurityModel Create (0.1ms) INSERT INTO "test_model_security_models" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction TestModelSecurityModel Load (0.0ms) SELECT "test_model_security_models".* FROM "test_model_security_models" WHERE "test_model_security_models"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.568358"], ["updated_at", "2018-12-19 00:56:41.568358"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 0]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 1], ["attr", 3]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.575387"], ["updated_at", "2018-12-19 00:56:41.575387"]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("test_model_id", "attr") VALUES (?, ?) [["test_model_id", 2], ["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestModel Create (0.1ms) INSERT INTO "test_models" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2018-12-19 00:56:41.578878"], ["updated_at", "2018-12-19 00:56:41.578878"]]  (0.0ms) commit transaction  (0.0ms) begin transaction Branch Create (0.1ms) INSERT INTO "branches" ("test_model_id") VALUES (?) [["test_model_id", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 1]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 2]] TestAttr Load (0.0ms) SELECT "test_attrs".* FROM "test_attrs" WHERE "test_attrs"."test_model_id" = ? [["test_model_id", 3]] TestModel Destroy (0.1ms) DELETE FROM "test_models" Branch Destroy (0.0ms) DELETE FROM "branches" TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.4ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.1ms) commit transaction  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.2ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.3ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.1ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"  (0.2ms) CREATE TABLE 'test_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_through_id' INTEGER, 'content' text, 'country_id' integer, 'created_at' datetime, 'updated_at' datetime )  (0.1ms)  CREATE TABLE 'test_attrs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_model_id' integer, 'test_another_model_id' integer, 'test_a_third_model_id' integer, 'branch_id' integer, 'company_id' integer, 'test_attr_through_id' INTEGER, 'n_way_join_item_id' INTEGER, 'test_model_security_model_id' integer, 'attr' integer default 1 )  (0.1ms)  CREATE TABLE 'test_attr_throughs' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'test_model_security_models' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'attr' integer default 1, 'attr_2' integer default 1, 'test_attr_id' integer )  (0.1ms)  CREATE TABLE 'n_way_join_items' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.1ms)  CREATE TABLE 'branches' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'company_id' integer, 'test_model_id' integer, 'name' text )  (0.1ms)  CREATE TABLE 'companies' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'country_id' integer, 'type' text, 'name' text )  (0.1ms)  CREATE TABLE 'countries' ( 'id' INTEGER PRIMARY KEY NOT NULL, 'name' text )  (0.1ms)  CREATE TABLE 'users' ( 'id' INTEGER PRIMARY KEY NOT NULL )  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" DEFAULT VALUES  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 2]]  (0.0ms) commit transaction  (0.0ms) begin transaction TestAttr Create (0.1ms) INSERT INTO "test_attrs" ("attr") VALUES (?) [["attr", 3]]  (0.0ms) commit transaction TestAttr Load (0.2ms) SELECT "test_attrs".* FROM "test_attrs" WHERE (("test_attrs"."attr" IN (1,2))) TestAttr Destroy (0.1ms) DELETE FROM "test_attrs"